public class AxMessage extends Object implements MessageExtension, MessageExtensionFactory
Encapsulates:
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 required to be signed.
|
public static final String OPENID_NS_AX
protected ParameterList _parameters
The openid.
public AxMessage()
public AxMessage(ParameterList params)
The parameter names in the list should not contain the
openid.
public String getTypeUri()
getTypeUri
in interface MessageExtension
getTypeUri
in interface MessageExtensionFactory
public ParameterList getParameters()
The openid.
The openid.ns.
getParameters
in interface MessageExtension
Message
public String getParameterValue(String name)
name
- The name of the parameter,
without the openid.public void setParameters(ParameterList params)
The parameter names in the list should not contain the
openid.
setParameters
in interface MessageExtension
Message
public boolean providesIdentifier()
providesIdentifier
in interface MessageExtension
public boolean signRequired()
signRequired
in interface MessageExtension
public MessageExtension getExtension(ParameterList parameterList, boolean isRequest) throws MessageException
getExtension
in interface MessageExtensionFactory
parameterList
- 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 © 2017 Sxip. All rights reserved.