org.openid4java.message.sreg
Class SReg11ExtensionFactory

java.lang.Object
  extended by org.openid4java.message.sreg.SReg11ExtensionFactory
All Implemented Interfaces:
MessageExtensionFactory

public class SReg11ExtensionFactory
extends java.lang.Object
implements MessageExtensionFactory

Custom Extension Factory for SREG 1.1 messages. Creates SRegMessage objects, but sets the type URI to http://openid.net/extensions/sreg/1.1 for SREG 1.1.

Author:
Marius Scurtescu, Johnny Bufu

Constructor Summary
SReg11ExtensionFactory()
           
 
Method Summary
 MessageExtension getExtension(ParameterList parameterList, boolean isRequest)
          Instantiates the apropriate Simple Registration object (request / response) for the supplied parameter list.
 java.lang.String getTypeUri()
          Gets the Type URI that identifies the Simple Registration 1.1 extension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SReg11ExtensionFactory

public SReg11ExtensionFactory()
Method Detail

getTypeUri

public java.lang.String getTypeUri()
Gets the Type URI that identifies the Simple Registration 1.1 extension.

Specified by:
getTypeUri in interface MessageExtensionFactory

getExtension

public MessageExtension getExtension(ParameterList parameterList,
                                     boolean isRequest)
                              throws MessageException
Instantiates the apropriate Simple Registration object (request / response) for the supplied parameter list. Similar to SRegMessage.getExtension(), but sets the SREG 1.1 type URI.

Specified by:
getExtension in interface MessageExtensionFactory
Parameters:
parameterList - The Simple Registration specific parameters (without the openid. prefix) extracted from the openid message.
isRequest - Indicates whether the parameters were extracted from an OpenID request (true), or from an OpenID response.
Returns:
MessageExtension implementation for the supplied extension parameters.
Throws:
MessageException - If a Simple Registration object could not be instantiated from the supplied parameter list.


Copyright 2006-2008 Sxip Identity Corporation