public class DeferredAuthentication extends Object implements Authentication.Deferred
Authentication.Challenge, Authentication.Deferred, Authentication.Failed, 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
request
- the requestAuthentication.Deferred.authenticate(ServletRequest)
public Authentication authenticate(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
Authentication.Deferred
authenticate
in interface Authentication.Deferred
request
- the requestresponse
- the responseAuthentication.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
username
- the usernamepassword
- the passwordrequest
- the requestAuthentication.Deferred.login(String, Object, ServletRequest)
public Object getPreviousAssociation()
public static boolean isDeferred(javax.servlet.http.HttpServletResponse response)
response
- the responseauthenticate(ServletRequest)
Copyright © 1995-2015 Webtide. All Rights Reserved.