Tsukuyomi OpenID
0.2.0

jp.sourceforge.tsukuyomi.openid.message.pape
クラス PapeResponse

java.lang.Object
  上位を拡張 jp.sourceforge.tsukuyomi.openid.message.pape.PapeMessage
      上位を拡張 jp.sourceforge.tsukuyomi.openid.message.pape.PapeResponse
すべての実装されたインタフェース:
MessageExtension, MessageExtensionFactory

public class PapeResponse
extends PapeMessage

Implements the extension for OpenID Provider Authentication Policy responses.

作成者:
Marius Scurtescu, Johnny Bufu

フィールドの概要
static String AUTH_AGE_UNKNOWN
           
protected static List<String> PAPE_FIELDS
           
 
クラス jp.sourceforge.tsukuyomi.openid.message.pape.PapeMessage から継承されたフィールド
OPENID_NS_PAPE, PAPE_POLICY_MULTI_FACTOR, PAPE_POLICY_MULTI_FACTOR_PHYSICAL, PAPE_POLICY_PHISHING_RESISTANT, parameters
 
コンストラクタの概要
protected PapeResponse()
          Constructs a Pape Response with an empty parameter list.
protected PapeResponse(ParameterList params)
          Constructs a Pape Response from a parameter list.
 
メソッドの概要
 void addAuthPolicy(String policyUri)
          Adds an authentication policy URI to the auth_policies parameter.
static PapeResponse createPapeResponse()
          Constructs a Pape Response with an empty parameter list.
static PapeResponse createPapeResponse(ParameterList params)
           
 int getAuthAge()
          Gets the value of the auth_age parameter.
 String getAuthPolicies()
          Gets the auth_policies parameter value.
 List<String> getAuthPoliciesList()
          Gets a list with the auth_policies.
 int getNistAuthLevel()
          Gets the value of the nist_auth_level parameter.
 void setAuthAge(int seconds)
          Sets the auth_age parameter.
 void setAuthPolicies(String policyUris)
          Sets a new value for the auth_policies parameter.
 void setNistAuthLevel(int level)
           
 
クラス jp.sourceforge.tsukuyomi.openid.message.pape.PapeMessage から継承されたメソッド
getExtension, getParameter, getParameters, getParameterValue, getTypeUri, hasParameter, providesIdentifier, set, setParameters
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

AUTH_AGE_UNKNOWN

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

PAPE_FIELDS

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

PapeResponse

protected PapeResponse()
Constructs a Pape Response with an empty parameter list.


PapeResponse

protected PapeResponse(ParameterList params)
Constructs a Pape Response from a parameter list.

The parameter list can be extracted from a received message with the getExtensionParams method of the Message class, and MUST NOT contain the "openid.." prefix.

メソッドの詳細

createPapeResponse

public static PapeResponse createPapeResponse()
Constructs a Pape Response with an empty parameter list.


createPapeResponse

public static PapeResponse createPapeResponse(ParameterList params)
                                       throws MessageException
例外:
MessageException

getAuthPolicies

public String getAuthPolicies()
Gets the auth_policies parameter value.


setAuthPolicies

public void setAuthPolicies(String policyUris)
Sets a new value for the auth_policies parameter. The previous value of the parameter will be owerwritten.

パラメータ:
policyUris - Space separated list of authentication policy URIs to be set.
関連項目:
addAuthPolicy(String)

addAuthPolicy

public void addAuthPolicy(String policyUri)
Adds an authentication policy URI to the auth_policies parameter.

パラメータ:
policyUri - The authentication policy URI to be set.
関連項目:
setAuthPolicies(String)

getAuthPoliciesList

public List<String> getAuthPoliciesList()
Gets a list with the auth_policies. An empty list is returned if no authentication policies exist.


setAuthAge

public void setAuthAge(int seconds)
Sets the auth_age parameter.

パラメータ:
seconds - The number of seconds since the user was actively authenticated by the OP, or -1 if the auth_age is unknown.

getAuthAge

public int getAuthAge()
Gets the value of the auth_age parameter.

戻り値:
The number of seconds since the user was actively authenticated by the OP. For the special value "unknown" 0 is returned; if the parameter is not present, -1 is returned.

getNistAuthLevel

public int getNistAuthLevel()
Gets the value of the nist_auth_level parameter.

NIST levels are integers between 1 and 4 inclusive. Level 0 is used to signify that the OP recognizes the parameter and the user authentication did not meet the requirements of Level 1.

戻り値:
The NIST level, or -1 if the parameter is not set.

setNistAuthLevel

public void setNistAuthLevel(int level)
                      throws MessageException
例外:
MessageException

Tsukuyomi OpenID
0.2.0

Copyright © 2008 Project Tsukuyomi. All Rights Reserved.