public class

OpenID4JavaConsumer

extends Object
implements OpenIDConsumer
java.lang.Object
   ↳ org.springframework.security.openid.OpenID4JavaConsumer

Summary

Fields
protected final Log logger
Public Constructors
OpenID4JavaConsumer()
OpenID4JavaConsumer(List<OpenIDAttribute> attributes)
This constructor is deprecated. use the AxFetchListFactory version instead.
OpenID4JavaConsumer(ConsumerManager consumerManager, List<OpenIDAttribute> attributes)
OpenID4JavaConsumer(AxFetchListFactory attributesToFetchFactory)
OpenID4JavaConsumer(ConsumerManager consumerManager, AxFetchListFactory attributesToFetchFactory)
Public Methods
String beginConsumption(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(HttpServletRequest request)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.security.openid.OpenIDConsumer

Fields

protected final Log logger

Public Constructors

public OpenID4JavaConsumer ()

Throws
ConsumerException

public OpenID4JavaConsumer (List<OpenIDAttribute> attributes)

This constructor is deprecated.
use the AxFetchListFactory version instead.

Throws
ConsumerException

public OpenID4JavaConsumer (ConsumerManager consumerManager, List<OpenIDAttribute> attributes)

Throws
ConsumerException

public OpenID4JavaConsumer (AxFetchListFactory attributesToFetchFactory)

Throws
ConsumerException

public OpenID4JavaConsumer (ConsumerManager consumerManager, AxFetchListFactory attributesToFetchFactory)

Throws
ConsumerException

Public Methods

public String beginConsumption (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.

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

public OpenIDAuthenticationToken endConsumption (HttpServletRequest request)