|
Tsukuyomi OpenID 0.2.0 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.sourceforge.tsukuyomi.openid.message.ax.AxMessage
jp.sourceforge.tsukuyomi.openid.message.ax.FetchResponse
public class FetchResponse
Implements the extension for Attribute Exchange fetch responses.
フィールドの概要 |
---|
クラス jp.sourceforge.tsukuyomi.openid.message.ax.AxMessage から継承されたフィールド |
---|
OPENID_NS_AX, parameters |
コンストラクタの概要 | |
---|---|
protected |
FetchResponse()
Constructs a Fetch Response with an empty parameter list. |
protected |
FetchResponse(ParameterList params)
Constructs a FetchResponse from a parameter list. |
メソッドの概要 | |
---|---|
void |
addAttribute(String alias,
String typeUri,
String value)
Adds an attribute to the fetch response. |
static FetchResponse |
createFetchResponse()
Constructs a Fetch Response with an empty parameter list. |
static FetchResponse |
createFetchResponse(FetchRequest req,
Map<String,String> userData)
Creates a FetchResponse from a FetchRequest message and the data released by the user. |
static FetchResponse |
createFetchResponse(ParameterList params)
|
List<String> |
getAttributeAliases()
Gets a list of attribute aliases. |
Map<String,Object> |
getAttributes()
Gets a map with attribute aliases -> list of values. |
List<String> |
getAttributeValues(String alias)
Returns a list with the attribute value(s) associated for the specified attribute alias. |
int |
getCount(String alias)
Gets the number of values provided in the fetch response for the specified attribute alias. |
String |
getUpdateUrl()
Gets the optional 'update_url' parameter if available, or null otherwise. |
void |
setUpdateUrl(String updateUrl)
Sets the optional 'update_url' parameter where the OP can later re-post fetch-response updates for the values of the requested attributes. |
クラス jp.sourceforge.tsukuyomi.openid.message.ax.AxMessage から継承されたメソッド |
---|
getExtension, getParameters, getParameterValue, getTypeUri, multivalDecode, multivalEncode, providesIdentifier, setParameters |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
protected FetchResponse()
protected FetchResponse(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 FetchResponse createFetchResponse()
public static FetchResponse createFetchResponse(ParameterList params) throws MessageException
MessageException
public static FetchResponse createFetchResponse(FetchRequest req, Map<String,String> userData)
req
- FetchRequest message.userData
- The userData may be a Mappublic void addAttribute(String alias, String typeUri, String value)
alias
- The alias identifier that will be associated with the
attribute type URI.typeUri
- The attribute type URI.value
- The value of the attribute.public List<String> getAttributeValues(String alias)
alias
- The attribute alias.
public List<String> getAttributeAliases()
public Map<String,Object> getAttributes()
public int getCount(String alias)
alias
- The attribute alias.public void setUpdateUrl(String updateUrl) throws MessageException
updateUrl
- The URL where the RP accepts later updates for the requested
attributes.
MessageException
public String getUpdateUrl()
|
Tsukuyomi OpenID 0.2.0 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |