org.brickred.socialauth.util
Class OAuthConfig

java.lang.Object
  extended by org.brickred.socialauth.util.OAuthConfig
All Implemented Interfaces:
Serializable

public class OAuthConfig
extends Object
implements Serializable

It contains the configuration of application like consumer key and consumer secret

Author:
tarunn@brickred.com
See Also:
Serialized Form

Constructor Summary
OAuthConfig(String consumerKey, String consumerSecret)
           
OAuthConfig(String consumerKey, String consumerSecret, String signatureMethod, String transportName)
           
 
Method Summary
 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 getCustomPermissions()
           
 String getId()
          Retrieves the provider id
 Class<?> getProviderImplClass()
          Retrieves the provider implementation class
 void setCustomPermissions(String customPermissions)
           
 void setId(String id)
          Updates the provider id
 void setProviderImplClass(Class<?> providerImplClass)
          Updates the provider implementation class
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OAuthConfig

public OAuthConfig(String consumerKey,
                   String consumerSecret,
                   String signatureMethod,
                   String transportName)
Parameters:
consumerKey - Application consumer key
consumerSecret - Application consumer secret
signatureMethod - Signature Method type
transportName - Transport name

OAuthConfig

public OAuthConfig(String consumerKey,
                   String consumerSecret)
Method Detail

get_consumerKey

public String get_consumerKey()
Retrieves the consumer key

Returns:
the consumer key

get_consumerSecret

public String get_consumerSecret()
Retrieves the consumer secret

Returns:
the consumer secret

get_signatureMethod

public String get_signatureMethod()
Retrieves the signature method

Returns:
the signature method

get_transportName

public String get_transportName()
Retrieves the transport name

Returns:
the transport name

getId

public String getId()
Retrieves the provider id

Returns:
the provider id

setId

public void setId(String id)
Updates the provider id

Parameters:
id - the provider id

getProviderImplClass

public Class<?> getProviderImplClass()
Retrieves the provider implementation class

Returns:
the provider implementation class

setProviderImplClass

public void setProviderImplClass(Class<?> providerImplClass)
Updates the provider implementation class

Parameters:
providerImplClass - the provider implementation class

toString

public String toString()
Overrides:
toString in class Object

getCustomPermissions

public String getCustomPermissions()

setCustomPermissions

public void setCustomPermissions(String customPermissions)


Copyright © 2012. All Rights Reserved.