Class DeferredAuthentication
java.lang.Object
org.eclipse.jetty.ee8.security.authentication.DeferredAuthentication
- All Implemented Interfaces:
Authentication, Authentication.Deferred, Authentication.LoginAuthentication, Authentication.LogoutAuthentication, Request.AuthenticationState
-
Nested Class Summary
Nested classes/interfaces inherited from interface 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
FieldsFields inherited from interface Authentication
NOT_CHECKED, SEND_CONTINUE, SEND_FAILURE, SEND_SUCCESS, UNAUTHENTICATED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(javax.servlet.ServletRequest request) Authenticate if possible without sending a challenge.authenticate(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) Authenticate and possibly send a challenge.static booleanisDeferred(javax.servlet.http.HttpServletResponse response) Login with the LOGIN authenticatorlogout(javax.servlet.ServletRequest request) Remove any user information that may be present in the request such that a call to getUserPrincipal/getRemoteUser will return null.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Request.AuthenticationState
getUserPrincipal
-
Field Details
-
_authenticator
-
-
Constructor Details
-
DeferredAuthentication
-
-
Method Details
-
authenticate
Description copied from interface:Authentication.DeferredAuthenticate if possible without sending a challenge. This is used to check credentials that have been sent for non-mandatory authentication.- Specified by:
authenticatein interfaceAuthentication.Deferred- Parameters:
request- the request- Returns:
- The new Authentication state.
-
authenticate
public Authentication authenticate(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) Description copied from interface:Authentication.DeferredAuthenticate and possibly send a challenge. This is used to initiate authentication for previously non-mandatory authentication.- Specified by:
authenticatein interfaceAuthentication.Deferred- Parameters:
request- the requestresponse- the response- Returns:
- The new Authentication state.
-
login
Description copied from interface:Authentication.LoginAuthenticationLogin with the LOGIN authenticator- Specified by:
loginin interfaceAuthentication.LoginAuthentication- Parameters:
username- the usernamepassword- the passwordrequest- the request- Returns:
- The new Authentication state
-
logout
Description copied from interface:Authentication.LogoutAuthenticationRemove any user information that may be present in the request such that a call to getUserPrincipal/getRemoteUser will return null.- Specified by:
logoutin interfaceAuthentication.LogoutAuthentication- Parameters:
request- the request- Returns:
- NoAuthentication if we successfully logged out
-
getAssociation
-
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)
-