org.openid4java.message
Interface MessageExtensionFactory

All Known Implementing Classes:
AxMessage, AxPayload, FetchRequest, FetchResponse, PapeMessage, PapeRequest, PapeResponse, SReg11ExtensionFactory, SRegMessage, SRegRequest, SRegResponse, StoreRequest, StoreResponse

public interface MessageExtensionFactory

Factory interface for creating message extension objects for a specific message extension type URI.

Author:
Marius Scurtescu, Johnny Bufu
See Also:
MessageExtension, Message

Method Summary
 MessageExtension getExtension(ParameterList parameterList, boolean isRequest)
          Builds a MessageExtension from a parameter list containing the extension-specific parameters.
 java.lang.String getTypeUri()
          Gets the extension type URI of the extension factory.
 

Method Detail

getTypeUri

java.lang.String getTypeUri()
Gets the extension type URI of the extension factory.


getExtension

MessageExtension getExtension(ParameterList parameterList,
                              boolean isRequest)
                              throws MessageException
Builds a MessageExtension from a parameter list containing the extension-specific parameters.

The parameters MUST NOT contain the openid. prefix.

Parameters:
parameterList - The extension parameters with the openid. prefix removed.
isRequest - Indicates whether the parameters were extracted from an openid request (true), or from an openid response (false). This may assist the factory implementation in determining what object type to instantiate.
Returns:
MessageExtension implementation for the supplied extension parameters.
Throws:
MessageException


Copyright © 2011 Sxip. All Rights Reserved.