twitter4j.http
Class AuthorizationFactory

java.lang.Object
  extended by twitter4j.http.AuthorizationFactory

public final class AuthorizationFactory
extends java.lang.Object

A static factory class for Authorization.

Since:
Twitter4J 2.1.1
Author:
Yusuke Yamamoto - yusuke at mac.com

Constructor Summary
AuthorizationFactory()
           
 
Method Summary
static Authorization getBasicAuthorizationInstance(java.lang.String screenName, java.lang.String password)
          Deprecated. The @twitterapi team will be shutting off basic authentication on the Twitter API. All applications, by this date, need to switch to using OAuth. Read more »
static Authorization getInstance(Configuration conf, boolean supportsOAuth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorizationFactory

public AuthorizationFactory()
Method Detail

getInstance

public static Authorization getInstance(Configuration conf,
                                        boolean supportsOAuth)

getBasicAuthorizationInstance

public static Authorization getBasicAuthorizationInstance(java.lang.String screenName,
                                                          java.lang.String password)
Deprecated. The @twitterapi team will be shutting off basic authentication on the Twitter API. All applications, by this date, need to switch to using OAuth. Read more »

Parameters:
screenName - screen name
password - password
Returns:
authorization instance