@Deprecated public class AuthProviderFactory extends Object
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 and Description |
|---|
AuthProviderFactory()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static AuthProvider getInstance(String id) throws Exception
id - the id of requested provider. It can be facebook, foursquare,
google, hotmail, linkedin,myspace, twitter, yahooExceptionpublic 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 propertiesExceptionpublic 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 propertiesExceptionpublic 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 propertiesExceptionpublic 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.ExceptionCopyright © 2018. All Rights Reserved.