element.
Provides functionality for OPs / Servers to create OpenID tokens from
OpenID messages, and for RPs / Consumers to parse received tokens into
OpenID messages.
|
Constructor Summary |
OpenIDToken(Message openidMessage)
Constructs an OpenID token encapsulating the provided OpenID Message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OpenIDToken
public OpenIDToken(Message openidMessage)
- Constructs an OpenID token encapsulating the provided OpenID Message.
Should be used on the OP/STS side to generate a RSTR.
- Parameters:
openidMessage - The OpenID message obtained from
ServerManager.authResponse().
createFromXmlToken
public static OpenIDToken createFromXmlToken(java.lang.String xmlToken)
throws InfocardException
- Parses the data posted by the selector into an OpenID token.
Should be used on the RP side.
- Parameters:
xmlToken - The "xmlToken" parameter posted by the selector.
- Returns:
- An OpenIDToken encapsulating the OpenID AuthResponse.
- Throws:
InfocardException
getOpenIDMessage
public Message getOpenIDMessage()
- Gets the OpenID message contained in the OpenID token.
getOpenIDParams
public ParameterList getOpenIDParams()
- Gets the OpenID message as a ParameterList.
- Returns:
- ParameterList containing the OpenID message.
setOpenIDMessage
public void setOpenIDMessage(Message openidMessage)
- Sets the OpenID Message to encapsulate into the token.
getTokenType
public OpenIDTokenType getTokenType()
- Gets the OpenID token type.
- See Also:
OpenIDTokenType
getToken
public java.lang.String getToken()
- Generates the XML string representation of the OpenID token.
Copyright © 2011 Sxip. All Rights Reserved.