org.wso2.solutions.identity.relyingparty.openid.extensions
Class OpenIDAttributeExchange

java.lang.Object
  extended by org.wso2.solutions.identity.relyingparty.openid.extensions.OpenIDAttributeExchange
All Implemented Interfaces:
OpenIDExtension

public class OpenIDAttributeExchange
extends java.lang.Object
implements OpenIDExtension


Constructor Summary
OpenIDAttributeExchange()
          Default constructor
OpenIDAttributeExchange(org.openid4java.message.AuthSuccess authSuccess)
          Constructed during building the response
 
Method Summary
protected  java.lang.String getAlias(java.lang.String val)
          This provides a mapping between http://schema.openid.net/ and http://axschema.org
 org.openid4java.message.MessageExtension getMessageExtension(OpenIDAuthenticationRequest request)
          Creates an instance of MessageExtension for the OpenID authentication request
 void setSessionAttributes(javax.servlet.http.HttpServletRequest request)
          Set request attributes for OpenID attribute exchange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenIDAttributeExchange

public OpenIDAttributeExchange()
Default constructor


OpenIDAttributeExchange

public OpenIDAttributeExchange(org.openid4java.message.AuthSuccess authSuccess)
Constructed during building the response

Parameters:
authSuccess - An instance of AuthSuccess
Method Detail

getMessageExtension

public org.openid4java.message.MessageExtension getMessageExtension(OpenIDAuthenticationRequest request)
                                                             throws RelyingPartyException
Creates an instance of MessageExtension for the OpenID authentication request

Specified by:
getMessageExtension in interface OpenIDExtension
Parameters:
request - OpenID authentication request
Returns:
An instance of MessageExtension
Throws:
RelyingPartyException

setSessionAttributes

public void setSessionAttributes(javax.servlet.http.HttpServletRequest request)
                          throws RelyingPartyException
Set request attributes for OpenID attribute exchange

Specified by:
setSessionAttributes in interface OpenIDExtension
Parameters:
request - HttpServletRequest
Throws:
RelyingPartyException

getAlias

protected java.lang.String getAlias(java.lang.String val)
                             throws RelyingPartyException
This provides a mapping between http://schema.openid.net/ and http://axschema.org

Parameters:
val - schema name-space URL
Returns:
mapped value
Throws:
RelyingPartyException