Class DeferredAuthentication
- java.lang.Object
-
- org.eclipse.jetty.security.authentication.DeferredAuthentication
-
- All Implemented Interfaces:
Authentication,Authentication.Deferred,Authentication.LoginAuthentication,Authentication.LogoutAuthentication
public class DeferredAuthentication extends java.lang.Object implements Authentication.Deferred
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.server.Authentication
Authentication.Challenge, Authentication.Deferred, Authentication.Failed, Authentication.Failure, Authentication.LoginAuthentication, Authentication.LogoutAuthentication, Authentication.NonAuthenticated, Authentication.ResponseSent, Authentication.SendSuccess, Authentication.User, Authentication.Wrapped
-
-
Field Summary
Fields Modifier and Type Field Description protected LoginAuthenticator_authenticator-
Fields inherited from interface org.eclipse.jetty.server.Authentication
NOT_CHECKED, SEND_CONTINUE, SEND_FAILURE, SEND_SUCCESS, UNAUTHENTICATED
-
-
Constructor Summary
Constructors Constructor Description DeferredAuthentication(LoginAuthenticator authenticator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Authenticationauthenticate(javax.servlet.ServletRequest request)Authenticationauthenticate(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)java.lang.ObjectgetPreviousAssociation()static booleanisDeferred(javax.servlet.http.HttpServletResponse response)Authenticationlogin(java.lang.String username, java.lang.Object password, javax.servlet.ServletRequest request)Authenticationlogout(javax.servlet.ServletRequest request)
-
-
-
Field Detail
-
_authenticator
protected final LoginAuthenticator _authenticator
-
-
Constructor Detail
-
DeferredAuthentication
public DeferredAuthentication(LoginAuthenticator authenticator)
-
-
Method Detail
-
authenticate
public Authentication authenticate(javax.servlet.ServletRequest request)
- Specified by:
authenticatein interfaceAuthentication.Deferred- See Also:
Authentication.Deferred.authenticate(ServletRequest)
-
authenticate
public Authentication authenticate(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
- Specified by:
authenticatein interfaceAuthentication.Deferred- See Also:
Authentication.Deferred.authenticate(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
-
login
public Authentication login(java.lang.String username, java.lang.Object password, javax.servlet.ServletRequest request)
- Specified by:
loginin interfaceAuthentication.LoginAuthentication- See Also:
Authentication.LoginAuthentication.login(String, Object, ServletRequest)
-
logout
public Authentication logout(javax.servlet.ServletRequest request)
- Specified by:
logoutin interfaceAuthentication.LogoutAuthentication
-
getPreviousAssociation
public java.lang.Object getPreviousAssociation()
-
isDeferred
public static boolean isDeferred(javax.servlet.http.HttpServletResponse response)
- Parameters:
response- the response- Returns:
- true if this response is from a deferred call to
authenticate(ServletRequest)
-
-