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

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

public class OpenIDAuthenticationRequest
extends java.lang.Object


Constructor Summary
OpenIDAuthenticationRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse reponse)
           
 
Method Summary
 void addAuthPolicy(AuthPolicyType policyType)
          Add requested authentication policies
 void addClaims(java.lang.String attribute, java.util.ArrayList claims)
           
 void addOptionalClaims(java.lang.String attribute)
          Add optional attributes for Simple Registration.
 void addOptionalClaims(java.lang.String attribute, java.lang.String namespace)
          Add optional attributes for Attribute Exchange.
 void addRequestType(OpenIDRequestType requestType)
          Indicate what sort of attributes being requested.
 void addRequiredClaims(java.lang.String attribute)
          Add required attributes for Simple Registration.
 void addRequiredClaims(java.lang.String attribute, java.lang.String namespace)
          Add required attributes for Attribute Exchange.
 java.util.ArrayList<AuthPolicyType> getAuthTypes()
           
 int getMaxAuthAge()
           
 java.lang.String getOpenIDUrl()
           
 java.util.ArrayList getOptionalClaims()
           
 javax.servlet.http.HttpServletResponse getReponse()
           
 javax.servlet.http.HttpServletRequest getRequest()
           
 java.util.ArrayList<OpenIDRequestType> getRequestTypes()
           
 java.util.ArrayList getRequiredClaims()
           
 java.lang.String getReturnUrl()
           
 void setMaxAuthAge(int maxAuthAge)
           
 void setOpenIDUrl(java.lang.String openIDUrl)
           
 void setReponse(javax.servlet.http.HttpServletResponse reponse)
           
 void setRequest(javax.servlet.http.HttpServletRequest request)
           
 void setReturnUrl(java.lang.String returnurl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenIDAuthenticationRequest

public OpenIDAuthenticationRequest(javax.servlet.http.HttpServletRequest request,
                                   javax.servlet.http.HttpServletResponse reponse)
Method Detail

getOpenIDUrl

public java.lang.String getOpenIDUrl()

setOpenIDUrl

public void setOpenIDUrl(java.lang.String openIDUrl)

getRequestTypes

public java.util.ArrayList<OpenIDRequestType> getRequestTypes()

getReponse

public javax.servlet.http.HttpServletResponse getReponse()

setReponse

public void setReponse(javax.servlet.http.HttpServletResponse reponse)

getRequest

public javax.servlet.http.HttpServletRequest getRequest()

setRequest

public void setRequest(javax.servlet.http.HttpServletRequest request)

getReturnUrl

public java.lang.String getReturnUrl()

setReturnUrl

public void setReturnUrl(java.lang.String returnurl)

getRequiredClaims

public java.util.ArrayList getRequiredClaims()

getMaxAuthAge

public int getMaxAuthAge()

setMaxAuthAge

public void setMaxAuthAge(int maxAuthAge)

getAuthTypes

public java.util.ArrayList<AuthPolicyType> getAuthTypes()

getOptionalClaims

public java.util.ArrayList getOptionalClaims()

addAuthPolicy

public void addAuthPolicy(AuthPolicyType policyType)
Add requested authentication policies

Parameters:
policyType - Requested policy type

addRequestType

public void addRequestType(OpenIDRequestType requestType)
Indicate what sort of attributes being requested.

Parameters:
requestType - OpenIDRequestType

addRequiredClaims

public void addRequiredClaims(java.lang.String attribute)
                       throws RelyingPartyException
Add required attributes for Simple Registration. Make sure you have already set SIMPLE_REGISTRATION as an RequestType before calling this method.

Parameters:
attribute - SReg required attribute
Throws:
RelyingPartyException

addOptionalClaims

public void addOptionalClaims(java.lang.String attribute)
                       throws RelyingPartyException
Add optional attributes for Simple Registration. Make sure you have already set SIMPLE_REGISTRATION as an RequestType before calling this method.

Parameters:
attribute - SReg optional attribute
Throws:
RelyingPartyException

addRequiredClaims

public void addRequiredClaims(java.lang.String attribute,
                              java.lang.String namespace)
                       throws RelyingPartyException
Add required attributes for Attribute Exchange. Make sure you have already set ATTRIBUTE_EXCHANGE as an RequestType before calling this method.

Parameters:
attribute - Name of the attribute
namespace - Namespace of the attribute
Throws:
RelyingPartyException

addOptionalClaims

public void addOptionalClaims(java.lang.String attribute,
                              java.lang.String namespace)
                       throws RelyingPartyException
Add optional attributes for Attribute Exchange. Make sure you have already set ATTRIBUTE_EXCHANGE as an RequestType before calling this method.

Parameters:
attribute - Name of the attribute
namespace - Namespace of the attribute
Throws:
RelyingPartyException

addClaims

public void addClaims(java.lang.String attribute,
                      java.util.ArrayList claims)
               throws RelyingPartyException
Parameters:
attribute -
claims -
Throws:
RelyingPartyException