Example usage for twitter4j.conf PropertyConfiguration PASSWORD

List of usage examples for twitter4j.conf PropertyConfiguration PASSWORD

Introduction

In this page you can find the example usage for twitter4j.conf PropertyConfiguration PASSWORD.

Prototype

String PASSWORD

To view the source code for twitter4j.conf PropertyConfiguration PASSWORD.

Click Source Link

Usage

From source file:org.rhq.plugins.twitter.TwitterComponent.java

License:Open Source License

private Twitter createTwitterInstance() {
    Properties props = new Properties();
    props.setProperty(PropertyConfiguration.USER, username);
    props.setProperty(PropertyConfiguration.PASSWORD, password);
    PropertyConfiguration propConfig = new PropertyConfiguration(props);
    return tFactory.getInstance(AuthorizationFactory.getInstance(propConfig));
}