org.eclipse.jetty.security.authentication
Class DelegateAuthenticator

java.lang.Object
  extended by org.eclipse.jetty.security.authentication.DelegateAuthenticator
All Implemented Interfaces:
Authenticator
Direct Known Subclasses:
DeferredAuthenticator, SessionCachingAuthenticator, XCPSCachingAuthenticator

public class DelegateAuthenticator
extends Object
implements Authenticator


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jetty.security.Authenticator
Authenticator.Configuration, Authenticator.Factory
 
Field Summary
protected  Authenticator _delegate
           
 
Constructor Summary
DelegateAuthenticator(Authenticator delegate)
           
 
Method Summary
 String getAuthMethod()
           
 Authenticator getDelegate()
           
 boolean secureResponse(ServletRequest req, ServletResponse res, boolean mandatory, Authentication.User validatedUser)
           
 void setConfiguration(Authenticator.Configuration configuration)
          Configure the Authenticator
 Authentication validateRequest(ServletRequest request, ServletResponse response, boolean manditory)
          Validate a response
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_delegate

protected final Authenticator _delegate
Constructor Detail

DelegateAuthenticator

public DelegateAuthenticator(Authenticator delegate)
Method Detail

setConfiguration

public void setConfiguration(Authenticator.Configuration configuration)
Description copied from interface: Authenticator
Configure the Authenticator

Specified by:
setConfiguration in interface Authenticator

getAuthMethod

public String getAuthMethod()
Specified by:
getAuthMethod in interface Authenticator
Returns:
The name of the authentication method

getDelegate

public Authenticator getDelegate()

validateRequest

public Authentication validateRequest(ServletRequest request,
                                      ServletResponse response,
                                      boolean manditory)
                               throws ServerAuthException
Description copied from interface: Authenticator
Validate a response

Specified by:
validateRequest in interface Authenticator
Parameters:
request - The request
response - The response
manditory - True if authentication is mandatory.
Returns:
An Authentication. If Authentication is successful, this will be a Authentication.User. If a response has been sent by the Authenticator (which can be done for both successful and unsuccessful authentications), then the result will implement Authentication.ResponseSent. If Authentication is not manditory, then a Authentication.Deferred may be returned.
Throws:
ServerAuthException

secureResponse

public boolean secureResponse(ServletRequest req,
                              ServletResponse res,
                              boolean mandatory,
                              Authentication.User validatedUser)
                       throws ServerAuthException
Specified by:
secureResponse in interface Authenticator
Returns:
Throws:
ServerAuthException


Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.