Class OpenID4JavaConsumer
- java.lang.Object
-
- org.springframework.security.openid.OpenID4JavaConsumer
-
- All Implemented Interfaces:
OpenIDConsumer
public class OpenID4JavaConsumer extends java.lang.Object implements OpenIDConsumer
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.commons.logging.Loglogger
-
Constructor Summary
Constructors Constructor Description OpenID4JavaConsumer()OpenID4JavaConsumer(org.openid4java.consumer.ConsumerManager consumerManager, AxFetchListFactory attributesToFetchFactory)OpenID4JavaConsumer(AxFetchListFactory attributesToFetchFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringbeginConsumption(javax.servlet.http.HttpServletRequest req, java.lang.String identityUrl, java.lang.String returnToUrl, java.lang.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.OpenIDAuthenticationTokenendConsumption(javax.servlet.http.HttpServletRequest request)
-
-
-
Constructor Detail
-
OpenID4JavaConsumer
public OpenID4JavaConsumer() throws org.openid4java.consumer.ConsumerException- 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)
-
-
Method Detail
-
beginConsumption
public java.lang.String beginConsumption(javax.servlet.http.HttpServletRequest req, java.lang.String identityUrl, java.lang.String returnToUrl, java.lang.String realm) throws OpenIDConsumerExceptionDescription copied from interface:OpenIDConsumerGiven the request, the claimedIdentity, the return to url, and a realm, lookup the openId authentication page the user should be redirected to.- Specified by:
beginConsumptionin interfaceOpenIDConsumer- Parameters:
req- HttpServletRequestidentityUrl- String URI the user presented during authenticationreturnToUrl- String URI of the URL we want the user sent back to by the OPrealm- 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:
endConsumptionin interfaceOpenIDConsumer- Throws:
OpenIDConsumerException
-
-