public class DeferredAuthentication extends Object implements Authentication.Deferred
Authentication.Challenge, Authentication.Deferred, Authentication.Failure, Authentication.ResponseSent, Authentication.SendSuccess, Authentication.User, Authentication.Wrapped
Modifier and Type | Field and Description |
---|---|
protected LoginAuthenticator |
_authenticator |
NOT_CHECKED, SEND_CONTINUE, SEND_FAILURE, SEND_SUCCESS, UNAUTHENTICATED
Constructor and Description |
---|
DeferredAuthentication(LoginAuthenticator authenticator) |
Modifier and Type | Method and Description |
---|---|
Authentication |
authenticate(javax.servlet.ServletRequest request)
Authenticate if possible without sending a challenge.
|
Authentication |
authenticate(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
Authenticate and possibly send a challenge.
|
Object |
getPreviousAssociation() |
static boolean |
isDeferred(javax.servlet.http.HttpServletResponse response) |
Authentication |
login(String username,
Object password,
javax.servlet.ServletRequest request)
Login with the LOGIN authenticator
|
protected final LoginAuthenticator _authenticator
public DeferredAuthentication(LoginAuthenticator authenticator)
public Authentication authenticate(javax.servlet.ServletRequest request)
Authentication.Deferred
authenticate
in interface Authentication.Deferred
Authentication.Deferred.authenticate(ServletRequest)
public Authentication authenticate(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
Authentication.Deferred
authenticate
in interface Authentication.Deferred
Authentication.Deferred.authenticate(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
public Authentication login(String username, Object password, javax.servlet.ServletRequest request)
Authentication.Deferred
login
in interface Authentication.Deferred
org.eclipse.jetty.server.Authentication.Deferred#login(java.lang.String, java.lang.String)
public Object getPreviousAssociation()
public static boolean isDeferred(javax.servlet.http.HttpServletResponse response)
response
- authenticate(ServletRequest)
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.