Project Wonder 5.0

er.openid
Class EROpenIDManager

java.lang.Object
  extended by er.openid.EROpenIDManager

public class EROpenIDManager
extends java.lang.Object

EROpenIDManager is the primary interface to managing an OpenID connection.

Author:
mschrag
Properties
er.openid.proxyHostName the host name to use as a proxy (if necessary)
           
er.openid.proxyPort the port to use as a proxy (if necessary)
           
er.openid.formRedirectionPageName the name of the form redirection page to go to (defaults to EROFormRedirectionPage, should implement IEROFormRedirectionPage)
           
er.openid.requireSecureReturnURL whether to require secure return URL; default is true
           
er.openid.disableRealmVerifier whether to disable realm verifier. see OpenID 2.0 specification.
           

Nested Class Summary
static class EROpenIDManager.DefaultDelegate
          The default delegate implementation.
static interface EROpenIDManager.Delegate
          EROpenIDManager delegate
static class EROpenIDManager.EmailDelegate
          A simple delegate implementation that requests the user's email address.
 
Field Summary
static org.apache.log4j.Logger log
           
 
Constructor Summary
protected EROpenIDManager()
          Constructs a new EROpenIDManager.
 
Method Summary
 com.webobjects.appserver.WOActionResults authRequest(java.lang.String userSuppliedString, java.lang.String realm, com.webobjects.appserver.WORequest request, com.webobjects.appserver.WOContext context)
          Initiates the authentication request.
 boolean isOpenIDAuth(java.lang.String userSuppliedString)
          Returns whether or not the given string looks like an OpenID auth string.
static EROpenIDManager manager()
          Returns the singleton EROpenIDManager instance.
 void setDelegate(EROpenIDManager.Delegate delegate)
          Set the delegate for this manager if you want to specify a custom FetchRequest.
 EROResponse verifyResponse(com.webobjects.appserver.WORequest request, com.webobjects.appserver.WOContext context)
          The callback for verifying the OpenID response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final org.apache.log4j.Logger log
Constructor Detail

EROpenIDManager

protected EROpenIDManager()
                   throws org.openid4java.consumer.ConsumerException
Constructs a new EROpenIDManager.

Throws:
org.openid4java.consumer.ConsumerException
Method Detail

manager

public static EROpenIDManager manager()
Returns the singleton EROpenIDManager instance.

Returns:
the singleton EROpenIDManager instance

setDelegate

public void setDelegate(EROpenIDManager.Delegate delegate)
Set the delegate for this manager if you want to specify a custom FetchRequest.

Parameters:
delegate - the new delegate

isOpenIDAuth

public boolean isOpenIDAuth(java.lang.String userSuppliedString)
Returns whether or not the given string looks like an OpenID auth string.

Parameters:
userSuppliedString - the string from the user
Returns:
whether or not the given string looks like an OpenID auth string

authRequest

public com.webobjects.appserver.WOActionResults authRequest(java.lang.String userSuppliedString,
                                                            java.lang.String realm,
                                                            com.webobjects.appserver.WORequest request,
                                                            com.webobjects.appserver.WOContext context)
                                                     throws org.openid4java.message.MessageException,
                                                            org.openid4java.discovery.DiscoveryException,
                                                            org.openid4java.consumer.ConsumerException
Initiates the authentication request.

Parameters:
userSuppliedString - the string supplied by the user
realm - explicit realm to use for the authRequest. Allows nulls.
request - the WORequest
context - the WOContext
Returns:
the redirection action results
Throws:
MessageException
org.openid4java.discovery.DiscoveryException
org.openid4java.consumer.ConsumerException

verifyResponse

public EROResponse verifyResponse(com.webobjects.appserver.WORequest request,
                                  com.webobjects.appserver.WOContext context)
                           throws org.openid4java.message.MessageException,
                                  org.openid4java.discovery.DiscoveryException,
                                  org.openid4java.association.AssociationException
The callback for verifying the OpenID response.

Parameters:
request - the WORequest
context - the WOContext
Returns:
the OpenID response
Throws:
MessageException
org.openid4java.discovery.DiscoveryException
org.openid4java.association.AssociationException

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

Copyright © 2002 – 2007 Project Wonder.