Tsukuyomi OpenID
0.2.0

jp.sourceforge.tsukuyomi.openid.message
クラス AssociationRequest

java.lang.Object
  上位を拡張 jp.sourceforge.tsukuyomi.openid.message.Message
      上位を拡張 jp.sourceforge.tsukuyomi.openid.message.AssociationRequest

public class AssociationRequest
extends Message

The OpenID Association Request message.

Handles OpenID 2.0 and OpenID 1.x messages.

作成者:
Marius Scurtescu, Johnny Bufu
関連項目:
AssociationSessionType

フィールドの概要
static String MODE_ASSOC
           
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 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.
 
メソッドの概要
static AssociationRequest createAssociationRequest(AssociationSessionType type)
           
static AssociationRequest createAssociationRequest(AssociationSessionType type, DiffieHellmanSession dhSess)
           
static AssociationRequest createAssociationRequest(ParameterList params)
           
 String getDhGen()
          Gets the Diffie-Hellman generator parameter of the message, or null for messages with no-encryption sessions.
 String getDhModulus()
          Gets the Diffie-Hellman modulus parameter of the message, or null for messages with no-encryption sessions.
 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.
 List<String> getRequiredFields()
           
 AssociationSessionType getType()
          Gets the association / session type of the association request.
 boolean isValid()
          Checks if the message is a valid OpenID Association Request.
 boolean isVersion2()
          Returns true for OpenID 2.0 messages, false otherwise.
 
クラス 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
 

フィールドの詳細

MODE_ASSOC

public static final String MODE_ASSOC
関連項目:
定数フィールド値

REQUIRED_FIELDS

protected static final List<String> REQUIRED_FIELDS

OPTIONAL_FIELDS

protected static final List<String> OPTIONAL_FIELDS
コンストラクタの詳細

AssociationRequest

protected AssociationRequest(AssociationSessionType type)
Creates an Association Request message with the specified association type and "no-encryption" session.

The supplied type must be one of the "no-encryption" types, otherwise a DiffieHellman session is required.

関連項目:
AssociationRequest(AssociationSessionType, DiffieHellmanSession)

AssociationRequest

protected AssociationRequest(AssociationSessionType type,
                             DiffieHellmanSession dhSess)
Constructs an AssociationRequest message with the specified association type and Diffie-Hellman session.

パラメータ:
dhSess - Diffie-Hellman session to be used for this association; if null, a "no-encryption" session is created.

AssociationRequest

protected AssociationRequest(ParameterList params)
Constructs an AssociationRequest message from a parameter list.

Useful for processing incoming messages.

メソッドの詳細

createAssociationRequest

public static AssociationRequest createAssociationRequest(AssociationSessionType type)
                                                   throws MessageException
例外:
MessageException

createAssociationRequest

public static AssociationRequest createAssociationRequest(AssociationSessionType type,
                                                          DiffieHellmanSession dhSess)
                                                   throws MessageException
例外:
MessageException

createAssociationRequest

public static AssociationRequest createAssociationRequest(ParameterList params)
                                                   throws MessageException
例外:
MessageException

getRequiredFields

public List<String> getRequiredFields()
オーバーライド:
クラス Message 内の getRequiredFields

isVersion2

public boolean isVersion2()
Returns true for OpenID 2.0 messages, false otherwise.


getType

public AssociationSessionType getType()
                               throws AssociationException
Gets the association / session type of the association request.

例外:
AssociationException

getDHSess

public DiffieHellmanSession getDHSess()
Gets the Diffie-Hellman session Null for no-encryption association requests.


getDhModulus

public String getDhModulus()
Gets the Diffie-Hellman modulus parameter of the message, or null for messages with no-encryption sessions.


getDhGen

public String getDhGen()
Gets the Diffie-Hellman generator parameter of the message, or null for messages with no-encryption sessions.


getDhPublicKey

public String getDhPublicKey()
Gets the Relying Party's (consumer) Diffie-Hellman public key, or null for messages with no-encryption sessions.


isValid

public boolean isValid()
Checks if the message is a valid OpenID Association Request.

オーバーライド:
クラス Message 内の isValid
戻り値:
True if all validation checkes passed, false otherwise.

Tsukuyomi OpenID
0.2.0

Copyright © 2008 Project Tsukuyomi. All Rights Reserved.