org.springframework.security.ui.openid.consumers
Class OpenID4JavaConsumer
java.lang.Object
org.springframework.security.ui.openid.consumers.OpenID4JavaConsumer
- All Implemented Interfaces:
- OpenIDConsumer
public class OpenID4JavaConsumer
- extends Object
- implements OpenIDConsumer
- Author:
- Ray Krueger
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OpenID4JavaConsumer
public OpenID4JavaConsumer(org.openid4java.consumer.ConsumerManager consumerManager)
OpenID4JavaConsumer
public OpenID4JavaConsumer()
throws org.openid4java.consumer.ConsumerException
- Throws:
org.openid4java.consumer.ConsumerException
beginConsumption
public String beginConsumption(HttpServletRequest req,
String identityUrl,
String returnToUrl)
throws OpenIDConsumerException
- Specified by:
beginConsumption
in interface OpenIDConsumer
- Throws:
OpenIDConsumerException
beginConsumption
public String beginConsumption(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
- 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(HttpServletRequest request)
throws OpenIDConsumerException
- Specified by:
endConsumption
in interface OpenIDConsumer
- Throws:
OpenIDConsumerException
Copyright © 2004-2010 SpringSource, Inc. All Rights Reserved.