|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openid4java.message.ax.AxMessage
public class AxMessage
Base class for the Attribute Exchange implementation.
Encapsulates:
MessageExtension
Field Summary | |
---|---|
protected ParameterList |
_parameters
The Attribute Exchange extension-specific parameters. |
static java.lang.String |
OPENID_NS_AX
The Attribute Exchange Type URI. |
Constructor Summary | |
---|---|
AxMessage()
Constructs an empty (no parameters) Attribute Exchange extension. |
|
AxMessage(ParameterList params)
Constructs an Attribute Exchange extension with a specified list of parameters. |
Method Summary | |
---|---|
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. |
java.lang.String |
getParameterValue(java.lang.String name)
Gets a the value of the parameter with the specified name. |
java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String OPENID_NS_AX
protected ParameterList _parameters
The openid.
Constructor Detail |
---|
public AxMessage()
public AxMessage(ParameterList params)
The parameter names in the list should not contain the
openid.
Method Detail |
---|
public java.lang.String getTypeUri()
getTypeUri
in interface MessageExtension
getTypeUri
in interface MessageExtensionFactory
public ParameterList getParameters()
The openid.
The openid.ns.
getParameters
in interface MessageExtension
Message
public java.lang.String getParameterValue(java.lang.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |