public class SRegResponse extends SRegMessage
| Modifier and Type | Field and Description |
|---|---|
protected static List |
SREG_FIELDS |
_parameters, OPENID_NS_SREG, OPENID_NS_SREG11| Modifier | Constructor and Description |
|---|---|
protected |
SRegResponse()
Constructs a SReg Response with an empty parameter list.
|
protected |
SRegResponse(ParameterList params)
Constructs a SReg Response from a parameter list.
|
| Modifier and Type | Method and Description |
|---|---|
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 userData)
Creates a SRegResponse from a SRegRequest message and the data released
by the user.
|
List |
getAttributeNames()
Gets a list of attribute names in the SReg response.
|
Map |
getAttributes()
Gets a map with attribute names -> values.
|
String |
getAttributeValue(String attr)
Returns the value of an attribute.
|
getExtension, getParameters, getParameterValue, getTypeUri, multivalDecode, multivalEncode, providesIdentifier, setParameters, setTypeUri, signRequiredprotected static final List SREG_FIELDS
protected SRegResponse()
protected SRegResponse(ParameterList params)
public static SRegResponse createFetchResponse()
public static SRegResponse createSRegResponse(ParameterList params) throws MessageException
MessageExceptionpublic static SRegResponse createSRegResponse(SRegRequest req, 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(String attr, String value) throws MessageException
attr - An attribute name.value - The value of the attribute.MessageExceptionpublic String getAttributeValue(String attr)
attr - The attribute name.public List getAttributeNames()
public Map getAttributes()
Copyright © 2015 WSO2. All rights reserved.