Package org.eclipse.jetty.server
Interface Authentication.Deferred
- All Superinterfaces:
Authentication
,Authentication.LoginAuthentication
,Authentication.LogoutAuthentication
- All Known Implementing Classes:
DeferredAuthentication
- Enclosing interface:
- Authentication
public static interface Authentication.Deferred
extends Authentication.LoginAuthentication, Authentication.LogoutAuthentication
A deferred authentication with methods to progress
the authentication process.
-
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 inherited from interface org.eclipse.jetty.server.Authentication
NOT_CHECKED, SEND_CONTINUE, SEND_FAILURE, SEND_SUCCESS, UNAUTHENTICATED
-
Method Summary
Modifier and TypeMethodDescriptionauthenticate
(jakarta.servlet.ServletRequest request) Authenticate if possible without sending a challenge.authenticate
(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response) Authenticate and possibly send a challenge.Methods inherited from interface org.eclipse.jetty.server.Authentication.LoginAuthentication
login
Methods inherited from interface org.eclipse.jetty.server.Authentication.LogoutAuthentication
logout
-
Method Details
-
authenticate
Authenticate if possible without sending a challenge. This is used to check credentials that have been sent for non-mandatory authentication.- Parameters:
request
- the request- Returns:
- The new Authentication state.
-
authenticate
Authentication authenticate(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response) Authenticate and possibly send a challenge. This is used to initiate authentication for previously non-mandatory authentication.- Parameters:
request
- the requestresponse
- the response- Returns:
- The new Authentication state.
-