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(ServletRequest request)
Authenticate if possible without sending a challenge.
|
Authentication |
authenticate(ServletRequest request,
ServletResponse response)
Authenticate and possibly send a challenge.
|
Object |
getPreviousAssociation() |
static boolean |
isDeferred(HttpServletResponse response) |
Authentication |
login(String username,
Object password,
ServletRequest request)
Login with the LOGIN authenticator
|
protected final LoginAuthenticator _authenticator
public DeferredAuthentication(LoginAuthenticator authenticator)
public Authentication authenticate(ServletRequest request)
Authentication.Deferred
authenticate
in interface Authentication.Deferred
Authentication.Deferred.authenticate(ServletRequest)
public Authentication authenticate(ServletRequest request, 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, ServletRequest request)
Authentication.Deferred
login
in interface Authentication.Deferred
Authentication.Deferred.login(String, Object, ServletRequest)
public Object getPreviousAssociation()
public static boolean isDeferred(HttpServletResponse response)
response
- authenticate(ServletRequest)
Copyright © 1995-2015 Webtide. All Rights Reserved.