com.google.code.linkedinapi.client.oauth
Class LinkedInOAuthServiceFactory

java.lang.Object
  extended by com.google.code.linkedinapi.client.oauth.LinkedInOAuthServiceFactory

public class LinkedInOAuthServiceFactory
extends java.lang.Object

A factory for creating LinkedInOAuthService objects.

Author:
Nabeel Mukhtar

Field Summary
private static LinkedInOAuthServiceFactory instance
          The instance.
 
Constructor Summary
private LinkedInOAuthServiceFactory()
          Instantiates a new linked in o auth service factory.
 
Method Summary
 LinkedInOAuthService createLinkedInOAuthService(LinkedInApiConsumer apiConsumer)
          Creates a new LinkedInOAuthService object.
 LinkedInOAuthService createLinkedInOAuthService(java.lang.String consumerKey, java.lang.String consumerSecret)
          Creates a new LinkedInOAuthService object.
static LinkedInOAuthServiceFactory getInstance()
          Gets the single instance of LinkedInOAuthServiceFactory.
private  void validateConsumerKey(LinkedInApiConsumer apiConsumer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

private static LinkedInOAuthServiceFactory instance
The instance.

Constructor Detail

LinkedInOAuthServiceFactory

private LinkedInOAuthServiceFactory()
Instantiates a new linked in o auth service factory.

Method Detail

getInstance

public static LinkedInOAuthServiceFactory getInstance()
Gets the single instance of LinkedInOAuthServiceFactory.

Returns:
single instance of LinkedInOAuthServiceFactory

createLinkedInOAuthService

public LinkedInOAuthService createLinkedInOAuthService(java.lang.String consumerKey,
                                                       java.lang.String consumerSecret)
Creates a new LinkedInOAuthService object.

Parameters:
consumerKey - the consumer key
consumerSecret - the consumer secret
Returns:
the linked in o auth service

createLinkedInOAuthService

public LinkedInOAuthService createLinkedInOAuthService(LinkedInApiConsumer apiConsumer)
Creates a new LinkedInOAuthService object.

Parameters:
apiConsumer - the api consumer
Returns:
the linked in o auth service

validateConsumerKey

private void validateConsumerKey(LinkedInApiConsumer apiConsumer)