org.wso2.solutions.identity.relyingparty.openid
Class OpenIDExtensionFactory

java.lang.Object
  extended by org.wso2.solutions.identity.relyingparty.openid.OpenIDExtensionFactory

public class OpenIDExtensionFactory
extends java.lang.Object


Method Summary
 OpenIDExtension getExtension(OpenIDRequestType type)
          Create an instance of the OpenIDExtension based on the OpenID request type
 OpenIDExtension getExtension(java.lang.String alias, org.openid4java.message.AuthSuccess auth)
          Create an instance of the OpenIDExtension based on the OpenID extension type
static OpenIDExtensionFactory getInstance()
          Returns a singleton instance of OpenIDExtensionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static OpenIDExtensionFactory getInstance()
Returns a singleton instance of OpenIDExtensionFactory

Returns:
An instance of OpenIDExtensionFactory

getExtension

public OpenIDExtension getExtension(OpenIDRequestType type)
Create an instance of the OpenIDExtension based on the OpenID request type

Parameters:
type - Type of the OpenID request
Returns:
Appropriate OpenIDExtension instance

getExtension

public OpenIDExtension getExtension(java.lang.String alias,
                                    org.openid4java.message.AuthSuccess auth)
Create an instance of the OpenIDExtension based on the OpenID extension type

Parameters:
alias - Extension alias
auth - AuthSuccess instance
Returns:
Appropriate OpenIDExtension instance