org.springframework.security.openid
Class OpenID4JavaConsumer

java.lang.Object
  extended by org.springframework.security.openid.OpenID4JavaConsumer
All Implemented Interfaces:
OpenIDConsumer

public class OpenID4JavaConsumer
extends Object
implements OpenIDConsumer


Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Constructor Summary
OpenID4JavaConsumer()
           
OpenID4JavaConsumer(AxFetchListFactory attributesToFetchFactory)
           
OpenID4JavaConsumer(org.openid4java.consumer.ConsumerManager consumerManager, AxFetchListFactory attributesToFetchFactory)
           
OpenID4JavaConsumer(org.openid4java.consumer.ConsumerManager consumerManager, List<OpenIDAttribute> attributes)
          Deprecated. 
OpenID4JavaConsumer(List<OpenIDAttribute> attributes)
          Deprecated. use the AxFetchListFactory version instead.
 
Method Summary
 String beginConsumption(javax.servlet.http.HttpServletRequest req, String identityUrl, String returnToUrl, String realm)
          Given the request, the claimedIdentity, the return to url, and a realm, lookup the openId authentication page the user should be redirected to.
 OpenIDAuthenticationToken endConsumption(javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Constructor Detail

OpenID4JavaConsumer

public OpenID4JavaConsumer()
                    throws org.openid4java.consumer.ConsumerException
Throws:
org.openid4java.consumer.ConsumerException

OpenID4JavaConsumer

@Deprecated
public OpenID4JavaConsumer(List<OpenIDAttribute> attributes)
                    throws org.openid4java.consumer.ConsumerException
Deprecated. use the AxFetchListFactory version instead.

Throws:
org.openid4java.consumer.ConsumerException

OpenID4JavaConsumer

@Deprecated
public OpenID4JavaConsumer(org.openid4java.consumer.ConsumerManager consumerManager,
                                      List<OpenIDAttribute> attributes)
                    throws org.openid4java.consumer.ConsumerException
Deprecated. 

Throws:
org.openid4java.consumer.ConsumerException

OpenID4JavaConsumer

public OpenID4JavaConsumer(AxFetchListFactory attributesToFetchFactory)
                    throws org.openid4java.consumer.ConsumerException
Throws:
org.openid4java.consumer.ConsumerException

OpenID4JavaConsumer

public OpenID4JavaConsumer(org.openid4java.consumer.ConsumerManager consumerManager,
                           AxFetchListFactory attributesToFetchFactory)
                    throws org.openid4java.consumer.ConsumerException
Throws:
org.openid4java.consumer.ConsumerException
Method Detail

beginConsumption

public String beginConsumption(javax.servlet.http.HttpServletRequest req,
                               String identityUrl,
                               String returnToUrl,
                               String realm)
                        throws OpenIDConsumerException
Description copied from interface: OpenIDConsumer
Given the request, the claimedIdentity, the return to url, and a realm, lookup the openId authentication page the user should be redirected to.

Specified by:
beginConsumption in interface OpenIDConsumer
Parameters:
req - HttpServletRequest
identityUrl - String URI the user presented during authentication
returnToUrl - String URI of the URL we want the user sent back to by the OP
realm - URI pattern matching the realm we want the user to see
Returns:
String URI to redirect user to for authentication
Throws:
OpenIDConsumerException - if anything bad happens

endConsumption

public OpenIDAuthenticationToken endConsumption(javax.servlet.http.HttpServletRequest request)
                                         throws OpenIDConsumerException
Specified by:
endConsumption in interface OpenIDConsumer
Throws:
OpenIDConsumerException