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, 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
static OAuthConfig load(Properties props, String domain)
          It loads the configuration information from given properties for the given domain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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
Method Detail

load

public static OAuthConfig load(Properties props,
                               String domain)
It loads the configuration information from given properties for the given domain

Parameters:
props - Properties which contains the information of application property file.
domain - Domain for which configuration needs to be loaded.
Returns:

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


Copyright © 2011. All Rights Reserved.