|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openid4java.message.ax.AxMessage
org.openid4java.message.ax.AxPayload
org.openid4java.message.ax.FetchResponse
public class FetchResponse
Implements the extension for Attribute Exchange fetch responses.
Field Summary | |
---|---|
private static org.apache.commons.logging.Log |
_log
|
private static boolean |
DEBUG
|
Fields inherited from class org.openid4java.message.ax.AxMessage |
---|
_parameters, OPENID_NS_AX |
Constructor Summary | |
---|---|
protected |
FetchResponse()
Constructs a Fetch Response with an empty parameter list. |
protected |
FetchResponse(ParameterList params)
Constructs a FetchResponse from a parameter list. |
Method Summary | |
---|---|
static FetchResponse |
createFetchResponse()
Constructs a Fetch Response with an empty parameter list. |
static FetchResponse |
createFetchResponse(FetchRequest req,
java.util.Map userData)
Creates a FetchResponse from a FetchRequest message and the data released by the user. |
static FetchResponse |
createFetchResponse(ParameterList params)
|
java.lang.String |
getUpdateUrl()
Gets the optional 'update_url' parameter if available, or null otherwise. |
protected boolean |
isValid()
Checks the validity of the extension. |
void |
setUpdateUrl(java.lang.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. |
Methods inherited from class org.openid4java.message.ax.AxPayload |
---|
addAttribute, addAttribute, addAttributes, getAttributeAlias, getAttributeAliases, getAttributes, getAttributeTypes, getAttributeTypeUri, getAttributeValue, getAttributeValueByTypeUri, getAttributeValues, getAttributeValuesByTypeUri, getCount |
Methods inherited from class org.openid4java.message.ax.AxMessage |
---|
getExtension, getParameters, getParameterValue, getTypeUri, providesIdentifier, setParameters, signRequired |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static org.apache.commons.logging.Log _log
private static final boolean DEBUG
Constructor Detail |
---|
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.
Method Detail |
---|
public static FetchResponse createFetchResponse()
public static FetchResponse createFetchResponse(ParameterList params) throws MessageException
MessageException
public static FetchResponse createFetchResponse(FetchRequest req, java.util.Map userData) throws MessageException
req
- FetchRequest message.userData
- The userData may be a MapMessageException
public void setUpdateUrl(java.lang.String updateUrl) throws MessageException
updateUrl
- The URL where the RP accepts later updates
for the requested attributes.
MessageException
public java.lang.String getUpdateUrl()
protected boolean isValid()
Used when constructing a extension from a parameter list.
isValid
in class AxPayload
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |