|
Tsukuyomi OpenID 0.2.0 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.sourceforge.tsukuyomi.openid.message.sreg.SRegMessage
jp.sourceforge.tsukuyomi.openid.message.sreg.SRegResponse
public class SRegResponse
Implements the extension for Simple Registration fetch responses.
フィールドの概要 | |
---|---|
protected static List<String> |
SREG_FIELDS
|
クラス jp.sourceforge.tsukuyomi.openid.message.sreg.SRegMessage から継承されたフィールド |
---|
OPENID_NS_SREG, parameters |
コンストラクタの概要 | |
---|---|
protected |
SRegResponse()
Constructs a SReg Response with an empty parameter list. |
protected |
SRegResponse(ParameterList params)
Constructs a SReg Response from a parameter list. |
メソッドの概要 | |
---|---|
void |
addAttribute(String attr,
String value)
Adds an attribute to the SReg response. |
static SRegResponse |
createFetchResponse()
Constructs a SReg Response with an empty parameter list. |
static SRegResponse |
createSRegResponse(ParameterList params)
|
static SRegResponse |
createSRegResponse(SRegRequest req,
Map<String,String> userData)
Creates a SRegResponse from a SRegRequest message and the data released by the user. |
List<String> |
getAttributeNames()
Gets a list of attribute names in the SReg response. |
Map<String,String> |
getAttributes()
Gets a map with attribute names -> values. |
String |
getAttributeValue(String attr)
Returns the value of an attribute. |
クラス jp.sourceforge.tsukuyomi.openid.message.sreg.SRegMessage から継承されたメソッド |
---|
getExtension, getParameters, getParameterValue, getTypeUri, multivalDecode, multivalEncode, providesIdentifier, setParameters |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
protected static final List<String> SREG_FIELDS
コンストラクタの詳細 |
---|
protected SRegResponse()
protected SRegResponse(ParameterList params)
The parameter list can be extracted from a received message with the
getExtensionParams method of the Message class, and MUST NOT contain the
"openid.
メソッドの詳細 |
---|
public static SRegResponse createFetchResponse()
public static SRegResponse createSRegResponse(ParameterList params) throws MessageException
MessageException
public static SRegResponse createSRegResponse(SRegRequest req, Map<String,String> userData) throws MessageException
req
- SRegRequest message.userData
- MapMessageException
- if any attribute-name in the userData map does not correspond
to an SREG field-name.public void addAttribute(String attr, String value) throws MessageException
attr
- An attribute name.value
- The value of the attribute.
MessageException
public String getAttributeValue(String attr)
attr
- The attribute name.
public List<String> getAttributeNames()
public Map<String,String> getAttributes()
|
Tsukuyomi OpenID 0.2.0 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |