Package org.eclipse.jetty.server
Interface Authentication.Deferred
-
- All Superinterfaces:
Authentication
- Enclosing interface:
- Authentication
public static interface Authentication.Deferred extends Authentication
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.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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Authenticationauthenticate(ServletRequest request)Authenticate if possible without sending a challenge.Authenticationauthenticate(ServletRequest request, ServletResponse response)Authenticate and possibly send a challenge.Authenticationlogin(String username, Object password, ServletRequest request)Login with the LOGIN authenticator
-
-
-
Method Detail
-
authenticate
Authentication authenticate(ServletRequest request)
Authenticate if possible without sending a challenge. This is used to check credentials that have been sent for non-manditory authentication.- Parameters:
request- the request- Returns:
- The new Authentication state.
-
authenticate
Authentication authenticate(ServletRequest request, ServletResponse response)
Authenticate and possibly send a challenge. This is used to initiate authentication for previously non-manditory authentication.- Parameters:
request- the requestresponse- the response- Returns:
- The new Authentication state.
-
login
Authentication login(String username, Object password, ServletRequest request)
Login with the LOGIN authenticator- Parameters:
username- the usernamepassword- the passwordrequest- the request- Returns:
- The new Authentication state
-
-