|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.brickred.socialauth.AuthProviderFactory
@Deprecated public class AuthProviderFactory
This is deprecated. Use SocialAuthManager class instead of this. This
is a factory which creates an instance of the requested provider based on the
string passed as id. Currently available providers are facebook, foursquare,
google, hotmail, linkedin,myspace, openid, twitter, yahoo . If requested
provider id is not matched, it returns the OpenId provider.
| Constructor Summary | |
|---|---|
AuthProviderFactory()
Deprecated. |
|
| Method Summary | |
|---|---|
static AuthProvider |
getInstance(String id)
Deprecated. It provides the instance of requested provider |
static AuthProvider |
getInstance(String id,
ClassLoader classLoader)
Deprecated. |
static AuthProvider |
getInstance(String id,
Properties properties)
Deprecated. |
static AuthProvider |
getInstance(String id,
String propertiesFileName)
Deprecated. |
static AuthProvider |
getInstance(String id,
String propertiesFileName,
ClassLoader classLoader)
Deprecated. |
static void |
registerProvider(String pname,
Class clazz)
Deprecated. It register a new provider in AuthProviderFactory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthProviderFactory()
| Method Detail |
|---|
public static AuthProvider getInstance(String id)
throws Exception
id - the id of requested provider. It can be facebook, foursquare,
google, hotmail, linkedin,myspace, twitter, yahoo
Exception
public static AuthProvider getInstance(String id,
String propertiesFileName)
throws Exception
id - the id of requested provider. It can be facebook, foursquare,
google, hotmail, linkedin,myspace, twitter, yahoo.propertiesFileName - file name to read the properties
Exception
public static AuthProvider getInstance(String id,
ClassLoader classLoader)
throws Exception
id - the id of requested provider. It can be facebook, foursquare,
google, hotmail, linkedin,myspace, twitter, yahoo.classLoader - classloader to load the properties
Exception
public static AuthProvider getInstance(String id,
String propertiesFileName,
ClassLoader classLoader)
throws Exception
id - the id of requested provider. It can be facebook, foursquare,
google, hotmail, linkedin,myspace, twitter, yahoo.propertiesFileName - file name to read the propertiesclassLoader - classloader to load the properties
Exception
public static AuthProvider getInstance(String id,
Properties properties)
throws Exception
id - the id of requested provider. It can be facebook, foursquare,
google, hotmail, linkedin,myspace, twitter, yahoo.properties - properties containing key/secret for different providers and
information of custom provider.
Exception
public static void registerProvider(String pname,
Class clazz)
pname - provider nameclazz - class name of the provider implementation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||