|
Tsukuyomi OpenID 0.2.0 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.sourceforge.tsukuyomi.openid.message.Message
jp.sourceforge.tsukuyomi.openid.message.AssociationResponse
public class AssociationResponse
The OpenID Association Response message.
Handles OpenID 2.0 and OpenID 1.x messages.
AssociationSessionType
フィールドの概要 | |
---|---|
protected static List<String> |
OPTIONAL_FIELDS
|
protected static List<String> |
REQUIRED_FIELDS
|
クラス jp.sourceforge.tsukuyomi.openid.message.Message から継承されたフィールド |
---|
destinationUrl, MODE_CANCEL, MODE_IDRES, MODE_SETUP_NEEDED, OPENID2_NS |
コンストラクタの概要 | |
---|---|
protected |
AssociationResponse(AssociationRequest assocReq,
Association assoc)
Constructs an AssociationResponse for a given association request. |
protected |
AssociationResponse(ParameterList params)
Constructs an AssociationResponse message from a parameter list. |
メソッドの概要 | |
---|---|
static AssociationResponse |
createAssociationResponse(AssociationRequest assocReq,
Association assoc)
|
static AssociationResponse |
createAssociationResponse(ParameterList params)
|
Association |
getAssociation(DiffieHellmanSession dhSess)
Generates an Association object from an Association Response. |
List<String> |
getRequiredFields()
|
AssociationSessionType |
getType()
Gets the association / session type of the association response. |
boolean |
isValid()
Checks if the message is a valid OpenID Association Response.. |
boolean |
isVersion2()
Returns true for OpenID 2.0 messages, false otherwise. |
void |
setAssocHandle(String handle)
Sets the handle of the association. |
void |
setExpire(Long seconds)
Sets the lifetime, in seconds, of the association. |
void |
setMacKey(String key)
Sets the unecrtypted MAC key of the association. |
void |
setMacKeyEnc(String key)
Sets the encrypted MAC key of the association. |
void |
setPublicKey(String key)
Sets the IdP's (server's) public key for the association. |
void |
setType(AssociationSessionType type)
Sets the association / session type for the association response. |
クラス jp.sourceforge.tsukuyomi.openid.message.Message から継承されたメソッド |
---|
addExtension, addExtensionFactory, createMessage, createMessage, getDestinationUrl, getExtension, getExtensionAlias, getExtensionFactory, getExtensions, getParameter, getParameterMap, getParameters, getParameterValue, hasExtension, hasExtensionFactory, hasParameter, keyValueFormEncoding, set, wwwFormEncoding |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
protected static final List<String> REQUIRED_FIELDS
protected static final List<String> OPTIONAL_FIELDS
コンストラクタの詳細 |
---|
protected AssociationResponse(AssociationRequest assocReq, Association assoc) throws AssociationException
assocReq
- The association request that needs to be responded.assoc
- The association which will be used to sign authentication
responses.
AssociationException
protected AssociationResponse(ParameterList params)
Useful for processing incoming messages.
メソッドの詳細 |
---|
public static AssociationResponse createAssociationResponse(AssociationRequest assocReq, Association assoc) throws MessageException, AssociationException
MessageException
AssociationException
public static AssociationResponse createAssociationResponse(ParameterList params) throws MessageException
MessageException
public List<String> getRequiredFields()
Message
内の getRequiredFields
public boolean isVersion2()
public void setType(AssociationSessionType type)
public AssociationSessionType getType() throws AssociationException
AssociationException
public void setAssocHandle(String handle)
public void setExpire(Long seconds)
public void setMacKey(String key)
Should be called only for association responses using no-encryption sessions.
key
- The unencrypted MAC key.public void setPublicKey(String key)
key
- The server's public key for the association.public void setMacKeyEnc(String key)
Should be called only for association responses using Diffie-Hellman sessions.
key
- The encrypted MAC key.public boolean isValid()
Message
内の isValid
public Association getAssociation(DiffieHellmanSession dhSess) throws AssociationException
dhSess
- The Diffie-Helman session containing the private key used to
encrypt / decrypt the MAC key exchange. Should be null for
no-encryption sessions.
AssociationException
|
Tsukuyomi OpenID 0.2.0 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |