Package org.eclipse.jetty.security
Interface Authenticator
-
@Deprecated(since="2021-05-27") public interface Authenticator
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.Authenticator InterfaceAn Authenticator is responsible for checking requests and sending response challenges in order to authenticate a request. Various types of
Authentication
are returned in order to signal the next step in authentication.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Authenticator.AuthConfiguration
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static interface
Authenticator.Factory
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getAuthMethod()
Deprecated.void
prepareRequest(ServletRequest request)
Deprecated.Called prior to validateRequest.boolean
secureResponse(ServletRequest request, ServletResponse response, boolean mandatory, Authentication.User validatedUser)
Deprecated.is response securevoid
setConfiguration(Authenticator.AuthConfiguration configuration)
Deprecated.Configure the AuthenticatorAuthentication
validateRequest(ServletRequest request, ServletResponse response, boolean mandatory)
Deprecated.Validate a request
-
-
-
Method Detail
-
setConfiguration
void setConfiguration(Authenticator.AuthConfiguration configuration)
Deprecated.Configure the Authenticator- Parameters:
configuration
- the configuration
-
getAuthMethod
java.lang.String getAuthMethod()
Deprecated.- Returns:
- The name of the authentication method
-
prepareRequest
void prepareRequest(ServletRequest request)
Deprecated.Called prior to validateRequest. The authenticator can manipulate the request to update it with information that can be inspected prior to validateRequest being called. The primary purpose of this method is to satisfy the Servlet Spec 3.1 section 13.6.3 on handling Form authentication where the http method of the original request causing authentication is not the same as the http method resulting from the redirect after authentication.- Parameters:
request
- the request to manipulate
-
validateRequest
Authentication validateRequest(ServletRequest request, ServletResponse response, boolean mandatory) throws ServerAuthException
Deprecated.Validate a request- Parameters:
request
- The requestresponse
- The responsemandatory
- True if authentication is mandatory.- Returns:
- An Authentication. If Authentication is successful, this will be a
Authentication.User
. If a response has been sent by the Authenticator (which can be done for both successful and unsuccessful authentications), then the result will implementAuthentication.ResponseSent
. If Authentication is not mandatory, then aAuthentication.Deferred
may be returned. - Throws:
ServerAuthException
- if unable to validate request
-
secureResponse
boolean secureResponse(ServletRequest request, ServletResponse response, boolean mandatory, Authentication.User validatedUser) throws ServerAuthException
Deprecated.is response secure- Parameters:
request
- the requestresponse
- the responsemandatory
- if security is mandatorvalidatedUser
- the user that was validated- Returns:
- true if response is secure
- Throws:
ServerAuthException
- if unable to test response
-
-