org.eclipse.jetty.security.authentication
Class DeferredAuthentication
java.lang.Object
org.eclipse.jetty.security.authentication.DeferredAuthentication
- All Implemented Interfaces:
- Authentication, Authentication.Deferred
public class DeferredAuthentication
- extends Object
- implements Authentication.Deferred
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_authenticator
protected final Authenticator _authenticator
DeferredAuthentication
public DeferredAuthentication(Authenticator authenticator)
getIdentityService
public IdentityService getIdentityService()
- Get the identityService.
- Returns:
- the identityService
setIdentityService
public void setIdentityService(IdentityService identityService)
- Set the identityService.
- Parameters:
identityService
- the identityService to set
authenticate
public Authentication authenticate(ServletRequest request)
- Description copied from interface:
Authentication.Deferred
- Authenticate if possible without sending a challenge.
This is used to check credentials that have been sent for
non-manditory authentication.
- Specified by:
authenticate
in interface Authentication.Deferred
- Returns:
- The new Authentication state.
- See Also:
org.eclipse.jetty.server.Authentication.Deferred#authenticate()
authenticate
public Authentication authenticate(ServletRequest request,
ServletResponse response)
- Description copied from interface:
Authentication.Deferred
- Authenticate and possibly send a challenge.
This is used to initiate authentication for previously
non-manditory authentication.
- Specified by:
authenticate
in interface Authentication.Deferred
- Returns:
- The new Authentication state.
- See Also:
Authentication.Deferred.authenticate(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
login
public Authentication login(String username,
String password)
- Description copied from interface:
Authentication.Deferred
- Login with the LOGIN authenticator
- Specified by:
login
in interface Authentication.Deferred
- Returns:
- The new Authentication state
- See Also:
Authentication.Deferred.login(java.lang.String, java.lang.String)
getPreviousAssociation
public Object getPreviousAssociation()
isDeferred
public boolean isDeferred(HttpServletResponse response)
- Parameters:
response
-
- Returns:
- true if this response is from a deferred call to
authenticate(ServletRequest)
Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.