Tsukuyomi OpenID
0.2.0

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

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

public class PapeMessage
extends Object
implements MessageExtension, MessageExtensionFactory

Base class for the OpenID Provider Authentication Policy extension implementation.

Encapsulates:

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

フィールドの概要
static String OPENID_NS_PAPE
          The OpenID Provider Authentication Policy extension URI.
static String PAPE_POLICY_MULTI_FACTOR
           
static String PAPE_POLICY_MULTI_FACTOR_PHYSICAL
           
static String PAPE_POLICY_PHISHING_RESISTANT
           
protected  ParameterList parameters
          The OpenID Provider Authentication Policy extension-specific parameters.
 
コンストラクタの概要
PapeMessage()
          Constructs an empty (no parameters) OpenID Provider Authentication Policy extension.
PapeMessage(ParameterList params)
          Constructs an OpenID Provider Authentication Policy extension with a specified list of parameters.
 
メソッドの概要
 MessageExtension getExtension(ParameterList parameterList, boolean isRequest)
          Instantiates the apropriate OpenID Provider Authentication Policy extension object (request / response) for the supplied parameter list.
protected  Parameter getParameter(String name)
          Gets a the value of the parameter with the specified name.
 ParameterList getParameters()
          Gets ParameterList containing the OpenID Provider Authentication Policy extension-specific parameters.
 String getParameterValue(String name)
          Gets a the value of the parameter with the specified name.
 String getTypeUri()
          Gets the Type URI that identifies the OpenID Provider Authentication Policy extension.
 boolean hasParameter(String name)
          Checks if the extension contains a parameter.
 boolean providesIdentifier()
          OpenID Provider Authentication Policy extension doesn't implement authentication services.
protected  void set(String name, String value)
          Sets the value for the parameter with the specified name.
 void setParameters(ParameterList params)
          Sets the extension's parameters to the supplied list.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

PAPE_POLICY_PHISHING_RESISTANT

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

PAPE_POLICY_MULTI_FACTOR

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

PAPE_POLICY_MULTI_FACTOR_PHYSICAL

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

OPENID_NS_PAPE

public static final String OPENID_NS_PAPE
The OpenID Provider Authentication Policy extension URI.

関連項目:
定数フィールド値

parameters

protected ParameterList parameters
The OpenID Provider Authentication Policy extension-specific parameters.

The openid. prefix is not part of the parameter names

コンストラクタの詳細

PapeMessage

public PapeMessage()
Constructs an empty (no parameters) OpenID Provider Authentication Policy extension.


PapeMessage

public PapeMessage(ParameterList params)
Constructs an OpenID Provider Authentication Policy extension with a specified list of parameters.

The parameter names in the list should not contain the openid..

メソッドの詳細

getTypeUri

public String getTypeUri()
Gets the Type URI that identifies the OpenID Provider Authentication Policy extension.

定義:
インタフェース MessageExtension 内の getTypeUri
定義:
インタフェース MessageExtensionFactory 内の getTypeUri

getParameters

public ParameterList getParameters()
Gets ParameterList containing the OpenID Provider Authentication Policy extension-specific parameters.

The openid. prefix is not part of the parameter names, as it is handled internally by the Message class.

The openid.ns. parameter is also handled by the Message class.

定義:
インタフェース MessageExtension 内の getParameters
関連項目:
Message

setParameters

public void setParameters(ParameterList params)
Sets the extension's parameters to the supplied list.

The parameter names in the list should not contain the openid. prefix.

定義:
インタフェース MessageExtension 内の setParameters
関連項目:
Message

hasParameter

public boolean hasParameter(String name)
Checks if the extension contains a parameter.

パラメータ:
name - The name of the parameter, without the openid. prefix.
戻り値:
True if a parameter with the specified name exists, false otherwise.

set

protected void set(String name,
                   String value)
Sets the value for the parameter with the specified name.

パラメータ:
name - The name of the parameter, without the openid. prefix.

getParameter

protected Parameter getParameter(String name)
Gets a the value of the parameter with the specified name.

パラメータ:
name - The name of the parameter, without the openid. prefix.
戻り値:
The parameter value, or null if not found.

getParameterValue

public String getParameterValue(String name)
Gets a the value of the parameter with the specified name.

パラメータ:
name - The name of the parameter, without the openid. prefix.
戻り値:
The parameter value, or null if not found.

providesIdentifier

public boolean providesIdentifier()
OpenID Provider Authentication Policy extension doesn't implement authentication services.

定義:
インタフェース MessageExtension 内の providesIdentifier
戻り値:
false

getExtension

public MessageExtension getExtension(ParameterList parameterList,
                                     boolean isRequest)
                              throws MessageException
Instantiates the apropriate OpenID Provider Authentication Policy extension object (request / response) for the supplied parameter list.

定義:
インタフェース MessageExtensionFactory 内の getExtension
パラメータ:
parameterList - The OpenID Provider Authentication Policy extension specific parameters (without the openid. prefix) extracted from the openid message.
isRequest - Indicates whether the parameters were extracted from an OpenID request (true), or from an OpenID response.
戻り値:
MessageExtension implementation for the supplied extension parameters.
例外:
MessageException - If a OpenID Provider Authentication Policy extension object could not be instantiated from the supplied parameter list.

Tsukuyomi OpenID
0.2.0

Copyright © 2008 Project Tsukuyomi. All Rights Reserved.