Project Wonder 5.0

er.openid
Class EROpenIDManager.DefaultDelegate

java.lang.Object
  extended by er.openid.EROpenIDManager.DefaultDelegate
All Implemented Interfaces:
EROpenIDManager.Delegate
Direct Known Subclasses:
EROpenIDManager.EmailDelegate
Enclosing class:
EROpenIDManager

public static class EROpenIDManager.DefaultDelegate
extends java.lang.Object
implements EROpenIDManager.Delegate

The default delegate implementation.


Constructor Summary
EROpenIDManager.DefaultDelegate()
           
 
Method Summary
 java.util.List<org.openid4java.message.MessageExtension> createFetchMessageExtensions(java.lang.String userSuppliedString, com.webobjects.appserver.WORequest request, com.webobjects.appserver.WOContext context)
          Returns OpenID message extensions for the fetch request.
 org.openid4java.message.MessageExtension createFetchRequest(java.lang.String userSuppliedString, com.webobjects.appserver.WORequest request, com.webobjects.appserver.WOContext context)
          Deprecated. 
 void responseReceived(org.openid4java.consumer.VerificationResult verification, EROResponse eroResponse, com.webobjects.appserver.WORequest request, com.webobjects.appserver.WOContext context)
          Called after a response is received from the OpenID server.
 java.lang.String returnToUrl(com.webobjects.appserver.WORequest request, com.webobjects.appserver.WOContext context)
          Returns the URL that the OpenID provider should come back to after authentication.
 java.lang.String rewriteReceivingUrl(com.webobjects.appserver.WORequest request, com.webobjects.appserver.WOContext context)
          Gives the delegate an opportunity to rewrite the receiving URL from the return request after authentication.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EROpenIDManager.DefaultDelegate

public EROpenIDManager.DefaultDelegate()
Method Detail

createFetchMessageExtensions

public java.util.List<org.openid4java.message.MessageExtension> createFetchMessageExtensions(java.lang.String userSuppliedString,
                                                                                             com.webobjects.appserver.WORequest request,
                                                                                             com.webobjects.appserver.WOContext context)
                                                                                      throws org.openid4java.message.MessageException
Description copied from interface: EROpenIDManager.Delegate
Returns OpenID message extensions for the fetch request. These message extensions will be sent to the OP as requests for additional information.

Specified by:
createFetchMessageExtensions in interface EROpenIDManager.Delegate
Parameters:
userSuppliedString - the string the user supplied
request - the WORequest
context - the WOContext
Returns:
a FetchRequest
Throws:
MessageException

createFetchRequest

@Deprecated
public org.openid4java.message.MessageExtension createFetchRequest(java.lang.String userSuppliedString,
                                                                              com.webobjects.appserver.WORequest request,
                                                                              com.webobjects.appserver.WOContext context)
                                                            throws org.openid4java.message.MessageException
Deprecated. 

Description copied from interface: EROpenIDManager.Delegate
Returns an OpenID fetch request.

Specified by:
createFetchRequest in interface EROpenIDManager.Delegate
Parameters:
userSuppliedString - the string the user supplied
request - the WORequest
context - the WOContext
Returns:
a FetchRequest
Throws:
MessageException

responseReceived

public void responseReceived(org.openid4java.consumer.VerificationResult verification,
                             EROResponse eroResponse,
                             com.webobjects.appserver.WORequest request,
                             com.webobjects.appserver.WOContext context)
Description copied from interface: EROpenIDManager.Delegate
Called after a response is received from the OpenID server.

Specified by:
responseReceived in interface EROpenIDManager.Delegate
Parameters:
verification - the original verification result
eroResponse - the EROResponse wrapper
request - the WORequest
context - the WOContext

returnToUrl

public java.lang.String returnToUrl(com.webobjects.appserver.WORequest request,
                                    com.webobjects.appserver.WOContext context)
Description copied from interface: EROpenIDManager.Delegate
Returns the URL that the OpenID provider should come back to after authentication.

Specified by:
returnToUrl in interface EROpenIDManager.Delegate
Parameters:
request - the WORequest
context - the WOContext
Returns:
the URL that the OpenID provider should come back to after authentication

rewriteReceivingUrl

public java.lang.String rewriteReceivingUrl(com.webobjects.appserver.WORequest request,
                                            com.webobjects.appserver.WOContext context)
Description copied from interface: EROpenIDManager.Delegate
Gives the delegate an opportunity to rewrite the receiving URL from the return request after authentication. This may be necessary if you are using rewrite rules on your webserver, and the returnToUrl does not match the URL that WebObjects may see in the WORequest.

Specified by:
rewriteReceivingUrl in interface EROpenIDManager.Delegate
Parameters:
request - the WORequest
context - the WOContext
Returns:
the rewritten URL

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.