org.openid4java.message.ax
Class StoreRequest

java.lang.Object
  extended by org.openid4java.message.ax.AxMessage
      extended by org.openid4java.message.ax.AxPayload
          extended by org.openid4java.message.ax.StoreRequest
All Implemented Interfaces:
MessageExtension, MessageExtensionFactory

public class StoreRequest
extends AxPayload

Implements the extension for Attribute Exchange store requests.

Author:
Marius Scurtescu, Johnny Bufu

Field Summary
 
Fields inherited from class org.openid4java.message.ax.AxMessage
_parameters, OPENID_NS_AX
 
Constructor Summary
protected StoreRequest()
          Constructs a Store Request with an empty parameter list.
protected StoreRequest(ParameterList params)
          Constructs a StoreRequest from a parameter list.
 
Method Summary
static StoreRequest createStoreRequest()
          Constructs a Store Request with an empty parameter list.
static StoreRequest createStoreRequest(ParameterList params)
          Constructs a StoreRequest from a parameter list.
 boolean isValid()
          Checks the validity of the extension.
 
Methods inherited from class org.openid4java.message.ax.AxPayload
addAttribute, addAttribute, addAttributes, getAttributeAlias, getAttributeAliases, getAttributes, getAttributeTypes, getAttributeTypeUri, getAttributeValue, getAttributeValueByTypeUri, getAttributeValues, getAttributeValuesByTypeUri, getCount
 
Methods inherited from class org.openid4java.message.ax.AxMessage
getExtension, getParameters, getParameterValue, getTypeUri, providesIdentifier, setParameters, signRequired
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoreRequest

protected StoreRequest()
Constructs a Store Request with an empty parameter list.


StoreRequest

protected StoreRequest(ParameterList params)
Constructs a StoreRequest from a parameter list.

The parameter list can be extracted from a received message with the getExtensionParams method of the Message class, and MUST NOT contain the "openid.." prefix.

Method Detail

createStoreRequest

public static StoreRequest createStoreRequest()
Constructs a Store Request with an empty parameter list.


createStoreRequest

public static StoreRequest createStoreRequest(ParameterList params)
                                       throws MessageException
Constructs a StoreRequest from a parameter list.

The parameter list can be extracted from a received message with the getExtensionParams method of the Message class, and MUST NOT contain the "openid.." prefix.

Throws:
MessageException

isValid

public boolean isValid()
Checks the validity of the extension.

Used when constructing a extension from a parameter list.

Overrides:
isValid in class AxPayload
Returns:
True if the extension is valid, false otherwise.


Copyright © 2012 Sxip. All Rights Reserved.