Project Wonder 5.0

er.openid
Interface EROpenIDManager.Delegate

All Known Implementing Classes:
EROpenIDManager.DefaultDelegate, EROpenIDManager.EmailDelegate
Enclosing class:
EROpenIDManager

public static interface EROpenIDManager.Delegate

EROpenIDManager delegate


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. Replaced by createFetchMessageExtensions
 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.
 

Method Detail

createFetchMessageExtensions

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
Returns OpenID message extensions for the fetch request. These message extensions will be sent to the OP as requests for additional information.

Parameters:
userSuppliedString - the string the user supplied
request - the WORequest
context - the WOContext
Returns:
a FetchRequest
Throws:
MessageException

createFetchRequest

@Deprecated
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. Replaced by createFetchMessageExtensions

Returns an OpenID fetch request.

Parameters:
userSuppliedString - the string the user supplied
request - the WORequest
context - the WOContext
Returns:
a FetchRequest
Throws:
MessageException

responseReceived

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.

Parameters:
verification - the original verification result
eroResponse - the EROResponse wrapper
request - the WORequest
context - the WOContext

returnToUrl

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.

Parameters:
request - the WORequest
context - the WOContext
Returns:
the URL that the OpenID provider should come back to after authentication

rewriteReceivingUrl

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. 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.

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.