org.eclipse.jetty.security.authentication
Class XCPSCachingAuthenticator

java.lang.Object
  extended by org.eclipse.jetty.security.authentication.DelegateAuthenticator
      extended by org.eclipse.jetty.security.authentication.XCPSCachingAuthenticator
All Implemented Interfaces:
Authenticator

public class XCPSCachingAuthenticator
extends DelegateAuthenticator

Cross-context psuedo-session caching ServerAuthentication

Version:
$Rev: 4793 $ $Date: 2009-03-19 00:00:01 +0100 (Thu, 19 Mar 2009) $

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jetty.security.Authenticator
Authenticator.Configuration, Authenticator.Factory
 
Field Summary
static String __J_AUTHENTICATED
           
 
Fields inherited from class org.eclipse.jetty.security.authentication.DelegateAuthenticator
_delegate
 
Constructor Summary
XCPSCachingAuthenticator(Authenticator delegate, CrossContextPsuedoSession<Authentication> xcps)
           
 
Method Summary
 Authentication validateRequest(ServletRequest request, ServletResponse response, boolean manditory)
          Validate a response
 
Methods inherited from class org.eclipse.jetty.security.authentication.DelegateAuthenticator
getAuthMethod, getDelegate, secureResponse, setConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__J_AUTHENTICATED

public static final String __J_AUTHENTICATED
See Also:
Constant Field Values
Constructor Detail

XCPSCachingAuthenticator

public XCPSCachingAuthenticator(Authenticator delegate,
                                CrossContextPsuedoSession<Authentication> xcps)
Method Detail

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
Overrides:
validateRequest in class DelegateAuthenticator
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


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