|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openid4java.message.Message
org.openid4java.message.AssociationRequest
public class AssociationRequest
The OpenID Association Request message.
Handles OpenID 2.0 and OpenID 1.x messages.
AssociationSessionType
Field Summary | |
---|---|
static java.lang.String |
MODE_ASSOC
|
protected static java.util.List |
optionalFields
|
protected static java.util.List |
requiredFields
|
Fields inherited from class org.openid4java.message.Message |
---|
_destinationUrl, MODE_CANCEL, MODE_IDRES, MODE_SETUP_NEEDED, OPENID2_NS |
Constructor Summary | |
---|---|
protected |
AssociationRequest(AssociationSessionType type)
Creates an Association Request message with the specified association type and "no-encryption" session. |
protected |
AssociationRequest(AssociationSessionType type,
DiffieHellmanSession dhSess)
Constructs an AssociationRequest message with the specified association type and Diffie-Hellman session. |
protected |
AssociationRequest(ParameterList params)
Constructs an AssociationRequest message from a parameter list. |
Method Summary | |
---|---|
static AssociationRequest |
createAssociationRequest(AssociationSessionType type)
|
static AssociationRequest |
createAssociationRequest(AssociationSessionType type,
DiffieHellmanSession dhSess)
|
static AssociationRequest |
createAssociationRequest(ParameterList params)
|
java.lang.String |
getDhGen()
Gets the Diffie-Hellman generator parameter of the message, or null for messages with no-encryption sessions. |
java.lang.String |
getDhModulus()
Gets the Diffie-Hellman modulus parameter of the message, or null for messages with no-encryption sessions. |
java.lang.String |
getDhPublicKey()
Gets the Relying Party's (consumer) Diffie-Hellman public key, or null for messages with no-encryption sessions. |
DiffieHellmanSession |
getDHSess()
Gets the Diffie-Hellman session Null for no-encryption association requests. |
java.util.List |
getRequiredFields()
|
AssociationSessionType |
getType()
Gets the association / session type of the association request. |
boolean |
isVersion2()
Returns true for OpenID 2.0 messages, false otherwise. |
void |
validate()
Checks if the message is a valid OpenID Association Request. |
Methods inherited from class org.openid4java.message.Message |
---|
addExtension, addExtensionFactory, createMessage, createMessage, getDestinationUrl, getExtension, getExtensionAlias, getExtensionFactory, getExtensions, getParameter, getParameterMap, getParameters, getParameterValue, hasExtension, hasExtensionFactory, hasParameter, keyValueFormEncoding, set, wwwFormEncoding |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MODE_ASSOC
protected static final java.util.List requiredFields
protected static final java.util.List optionalFields
Constructor Detail |
---|
protected AssociationRequest(AssociationSessionType type)
The supplied type must be one of the "no-encryption" types, otherwise a DiffieHellman session is required.
AssociationRequest(AssociationSessionType, DiffieHellmanSession)
protected AssociationRequest(AssociationSessionType type, DiffieHellmanSession dhSess)
dhSess
- Diffie-Hellman session to be used for this association;
if null, a "no-encryption" session is created.protected AssociationRequest(ParameterList params)
Useful for processing incoming messages.
Method Detail |
---|
public static AssociationRequest createAssociationRequest(AssociationSessionType type) throws MessageException
MessageException
public static AssociationRequest createAssociationRequest(AssociationSessionType type, DiffieHellmanSession dhSess) throws MessageException
MessageException
public static AssociationRequest createAssociationRequest(ParameterList params) throws MessageException
MessageException
public java.util.List getRequiredFields()
getRequiredFields
in class Message
public boolean isVersion2()
public AssociationSessionType getType() throws AssociationException
AssociationException
public DiffieHellmanSession getDHSess()
public java.lang.String getDhModulus()
public java.lang.String getDhGen()
public java.lang.String getDhPublicKey()
public void validate() throws MessageException
validate
in class Message
MessageException
- if message validation failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |