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

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

public class OpenIDConsumer
extends java.lang.Object


Method Summary
protected  void authRequest(OpenIDAuthenticationRequest request)
          Authenticates the OpenID url.
 void doOpenIDAuthentication(OpenIDAuthenticationRequest request)
          Authenticates the OpenID url.
static OpenIDConsumer getInstance()
           
 void setInfocardSessionAttributes(javax.servlet.http.HttpServletRequest request)
          Populates session attributes
 void setSessionAttributes(javax.servlet.http.HttpServletRequest request)
          Populates session attributes.
 org.openid4java.message.Message verifyOpenID(javax.servlet.http.HttpServletRequest request, org.openid4java.message.ParameterList openidResp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static OpenIDConsumer getInstance()
                                  throws RelyingPartyException
Returns:
An instance of OpenIDConsumer
Throws:
RelyingPartyException

doOpenIDAuthentication

public void doOpenIDAuthentication(OpenIDAuthenticationRequest request)
                            throws RelyingPartyException
Authenticates the OpenID url.

Parameters:
request - OpenID authentication request.
Throws:
RelyingPartyException

setSessionAttributes

public void setSessionAttributes(javax.servlet.http.HttpServletRequest request)
                          throws RelyingPartyException
Populates session attributes.

Parameters:
request - HttpServletRequest
Throws:
RelyingPartyException

setInfocardSessionAttributes

public void setInfocardSessionAttributes(javax.servlet.http.HttpServletRequest request)
                                  throws RelyingPartyException
Populates session attributes

Parameters:
request - HttpServletRequest
Throws:
RelyingPartyException

verifyOpenID

public org.openid4java.message.Message verifyOpenID(javax.servlet.http.HttpServletRequest request,
                                                    org.openid4java.message.ParameterList openidResp)
                                             throws org.openid4java.OpenIDException,
                                                    RelyingPartyException
Parameters:
request -
openidResp -
Returns:
Throws:
org.openid4java.OpenIDException
RelyingPartyException

authRequest

protected void authRequest(OpenIDAuthenticationRequest request)
                    throws RelyingPartyException
Authenticates the OpenID url.

Parameters:
request - OpenID authentication request.
Throws:
RelyingPartyException