public class OAuthConfig extends Object implements Serializable
| Constructor and Description |
|---|
OAuthConfig(String consumerKey,
String consumerSecret) |
OAuthConfig(String consumerKey,
String consumerSecret,
String signatureMethod,
String transportName) |
| Modifier and Type | Method and Description |
|---|---|
String |
get_consumerKey()
Retrieves the consumer key
|
String |
get_consumerSecret()
Retrieves the consumer secret
|
String |
get_signatureMethod()
Retrieves the signature method
|
String |
get_transportName()
Retrieves the transport name
|
String |
getAccessTokenUrl()
Retrieves the access token url
|
String |
getAuthenticationUrl()
Retrieves the authentication url
|
String |
getCustomPermissions()
Retrieves custom permissions configured in properties file
|
Map<String,String> |
getCustomProperties()
Returns custom properties for the provider
|
String |
getId()
Retrieves the provider id
|
List<String> |
getPluginsScopes()
Retrieves the list of plugins scopes
|
Class<?> |
getProviderImplClass()
Retrieves the provider implementation class
|
String[] |
getRegisteredPlugins()
Retrieves the registered plugins of a provider configured in properties
file.
|
String |
getRequestTokenUrl()
Retrieves the request token url
|
boolean |
isSaveRawResponse()
Returns status to save the raw response for profile and contacts.
|
void |
setAccessTokenUrl(String accessTokenUrl)
Updates the access token url
|
void |
setAuthenticationUrl(String authenticationUrl)
Updates the authentication url
|
void |
setCustomPermissions(String customPermissions)
Updates custom permissions configured in properties file
|
void |
setCustomProperties(Map<String,String> customProperties)
Updates the custom properties
|
void |
setId(String id)
Updates the provider id
|
void |
setPluginsScopes(List<String> pluginsScopes)
Updates the plugins scopes
|
void |
setProviderImplClass(Class<?> providerImplClass)
Updates the provider implementation class
|
void |
setRegisteredPlugins(String[] registeredPlugins)
Updates the registered plugins configured in properties file
|
void |
setRequestTokenUrl(String requestTokenUrl)
Updates the request token url
|
void |
setSaveRawResponse(boolean saveRawResponse)
Set this flag to True if raw response should be save for profile and
contacts.
|
String |
toString() |
public OAuthConfig(String consumerKey, String consumerSecret, String signatureMethod, String transportName)
consumerKey - Application consumer keyconsumerSecret - Application consumer secretsignatureMethod - Signature Method typetransportName - Transport namepublic String get_consumerKey()
public String get_consumerSecret()
public String get_signatureMethod()
public String get_transportName()
public String getId()
public void setId(String id)
id - the provider idpublic Class<?> getProviderImplClass()
public void setProviderImplClass(Class<?> providerImplClass)
providerImplClass - the provider implementation classpublic String getCustomPermissions()
public void setCustomPermissions(String customPermissions)
customPermissions - String of comma seperated custom permissionspublic String getAuthenticationUrl()
public void setAuthenticationUrl(String authenticationUrl)
authenticationUrl - the authentication url stringpublic String getAccessTokenUrl()
public void setAccessTokenUrl(String accessTokenUrl)
accessTokenUrl - the access token url stringpublic String getRequestTokenUrl()
public void setRequestTokenUrl(String requestTokenUrl)
requestTokenUrl - the request token url stringpublic String[] getRegisteredPlugins()
public void setRegisteredPlugins(String[] registeredPlugins)
registeredPlugins - String array of plugins. String should contain fully qualified
plugin class namepublic List<String> getPluginsScopes()
public void setPluginsScopes(List<String> pluginsScopes)
pluginsScopes - list of plugins scopespublic boolean isSaveRawResponse()
public void setSaveRawResponse(boolean saveRawResponse)
saveRawResponse - flag to config whether raw response should be saved or not.public Map<String,String> getCustomProperties()
public void setCustomProperties(Map<String,String> customProperties)
customProperties - map which store the custom properties required for the
provider except conumer key, secret and scopesCopyright © 2018. All Rights Reserved.