|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openid4java.message.sreg.SRegMessage
org.openid4java.message.sreg.SRegResponse
public class SRegResponse
Implements the extension for Simple Registration fetch responses.
Field Summary | |
---|---|
protected static java.util.List |
SREG_FIELDS
|
Fields inherited from class org.openid4java.message.sreg.SRegMessage |
---|
_parameters, OPENID_NS_SREG, OPENID_NS_SREG11 |
Constructor Summary | |
---|---|
protected |
SRegResponse()
Constructs a SReg Response with an empty parameter list. |
protected |
SRegResponse(ParameterList params)
Constructs a SReg Response from a parameter list. |
Method Summary | |
---|---|
void |
addAttribute(java.lang.String attr,
java.lang.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,
java.util.Map userData)
Creates a SRegResponse from a SRegRequest message and the data released by the user. |
java.util.List |
getAttributeNames()
Gets a list of attribute names in the SReg response. |
java.util.Map |
getAttributes()
Gets a map with attribute names -> values. |
java.lang.String |
getAttributeValue(java.lang.String attr)
Returns the value of an attribute. |
Methods inherited from class org.openid4java.message.sreg.SRegMessage |
---|
getExtension, getParameters, getParameterValue, getTypeUri, multivalDecode, multivalEncode, providesIdentifier, setParameters, setTypeUri, signRequired |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.util.List SREG_FIELDS
Constructor Detail |
---|
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.
Method Detail |
---|
public static SRegResponse createFetchResponse()
public static SRegResponse createSRegResponse(ParameterList params) throws MessageException
MessageException
public static SRegResponse createSRegResponse(SRegRequest req, java.util.Map 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(java.lang.String attr, java.lang.String value) throws MessageException
attr
- An attribute name.value
- The value of the attribute.
MessageException
public java.lang.String getAttributeValue(java.lang.String attr)
attr
- The attribute name.
public java.util.List getAttributeNames()
public java.util.Map getAttributes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |