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