|
Tsukuyomi OpenID 0.2.0 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.sourceforge.tsukuyomi.openid.message.sreg.SRegMessage
jp.sourceforge.tsukuyomi.openid.message.sreg.SRegRequest
public class SRegRequest
Implements the extension for Simple Registration fetch requests.
Message
フィールドの概要 |
---|
クラス jp.sourceforge.tsukuyomi.openid.message.sreg.SRegMessage から継承されたフィールド |
---|
OPENID_NS_SREG, parameters |
コンストラクタの概要 | |
---|---|
protected |
SRegRequest()
Constructs a SReg Request with an empty parameter list. |
protected |
SRegRequest(ParameterList params)
Constructs a SRegRequest from a parameter list. |
メソッドの概要 | |
---|---|
void |
addAttribute(String attr,
boolean required)
Adds an attribute to the SReg request. |
static SRegRequest |
createFetchRequest()
Constructs a SReg Request with an empty parameter list. |
static SRegRequest |
createSRegRequest(ParameterList params)
Constructs a SRegRequest from a parameter list. |
List<String> |
getAttributes()
Gets all requested attributes (required and optional). |
List<String> |
getAttributes(boolean required)
Returns a map with the requested attributes. |
String |
getUpdateUrl()
Gets the optional policy URL parameter if available, or null otherwise. |
boolean |
isValid()
Checks the validity of the extension. |
void |
setPolicyUrl(String policyUrl)
Sets the optional policy URL. |
クラス 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 SRegRequest()
protected SRegRequest(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 SRegRequest createFetchRequest()
public static SRegRequest createSRegRequest(ParameterList params) throws MessageException
The parameter list can be extracted from a received message with the
getExtensionParams method of the Message class, and MUST NOT contain the
"openid.
MessageException
public void addAttribute(String attr, boolean required)
attr
- A requested attribute name.required
- If true, marks the attribute as 'required'; 'if_available'
otherwise.public List<String> getAttributes(boolean required)
required
- If set to true the list of 'required' attributes is returned,
otherwise the list of 'optional' attributes.
public List<String> getAttributes()
public void setPolicyUrl(String policyUrl) throws MessageException
policyUrl
- A URL which the Consumer provides to give the End User a place
to read about the how the profile data will be used. The
Identity Provider SHOULD display this URL to the End User if
it is given.
MessageException
public String getUpdateUrl()
public boolean isValid()
Used when constructing a extension from a parameter list.
|
Tsukuyomi OpenID 0.2.0 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |