public class AxMessage extends Object implements MessageExtension, MessageExtensionFactory
MessageExtension| Modifier and Type | Field and Description |
|---|---|
protected ParameterList |
_parameters
The Attribute Exchange extension-specific parameters.
|
static String |
OPENID_NS_AX
The Attribute Exchange Type URI.
|
| Constructor and Description |
|---|
AxMessage()
Constructs an empty (no parameters) Attribute Exchange extension.
|
AxMessage(ParameterList params)
Constructs an Attribute Exchange extension with a specified list of
parameters.
|
| Modifier and Type | Method and Description |
|---|---|
MessageExtension |
getExtension(ParameterList parameterList,
boolean isRequest)
Instantiates the apropriate Attribute Exchange object (fetch / store -
request / response) for the supplied parameter list.
|
ParameterList |
getParameters()
Gets ParameterList containing the Attribute Exchange extension-specific
parameters.
|
String |
getParameterValue(String name)
Gets a the value of the parameter with the specified name.
|
String |
getTypeUri()
Gets the Type URI that identifies the Attribute Exchange extension.
|
boolean |
providesIdentifier()
Attribute exchange doesn't implement authentication services.
|
void |
setParameters(ParameterList params)
Sets the extension's parameters to the supplied list.
|
boolean |
signRequired()
Attribute exchange parameters are not REQUIRED to be signed.
|
public static final String OPENID_NS_AX
protected ParameterList _parameters
public AxMessage()
public AxMessage(ParameterList params)
public String getTypeUri()
getTypeUri in interface MessageExtensiongetTypeUri in interface MessageExtensionFactorypublic ParameterList getParameters()
getParameters in interface MessageExtensionMessagepublic void setParameters(ParameterList params)
setParameters in interface MessageExtensionMessagepublic String getParameterValue(String name)
name - The name of the parameter,
without the openid.public boolean providesIdentifier()
providesIdentifier in interface MessageExtensionpublic boolean signRequired()
signRequired in interface MessageExtensionpublic MessageExtension getExtension(ParameterList parameterList, boolean isRequest) throws MessageException
getExtension in interface MessageExtensionFactoryparameterList - The Attribute Exchange specific parameters
(without the openid.isRequest - Indicates whether the parameters were
extracted from an OpenID request (true),
or from an OpenID response.MessageException - If a Attribute Exchange object could not be
instantiated from the supplied parameter list.Copyright © 2015 WSO2. All rights reserved.