HttpAuthenticationMechanism interface that
can be subclassed by developers wishing to provide extra or different
functionality.
All methods default to calling the wrapped object.
| Modifier and Type | Field and Description |
|---|---|
| private final HttpAuthenticationMechanism |
| Access | Constructor and Description |
|---|---|
| public | |
| public | HttpAuthenticationMechanismWrapper(HttpAuthenticationMechanism
The wrapped object which all methods call. httpAuthenticationMechanism)Constructs the wrapper with the object being delegated to. |
| Modifier and Type | Method and Description |
|---|---|
| public void | cleanSubject(HttpServletRequest
contains the request the client has made request, HttpServletResponse contains the response that will be send to the client response, HttpMessageContext context for interacting with the container httpMessageContext)Overrides default jakarta. Remove mechanism specific principals and credentials from the subject and any other state the mechanism might have used. |
| public HttpAuthenticationMechanism | |
| public AuthenticationStatus | secureResponse(HttpServletRequest
contains the request the client has made request, HttpServletResponse contains the response that will be send to the client response, HttpMessageContext context for interacting with the container httpMessageContext)Overrides default jakarta. Secure the response, optionally. |
| public AuthenticationStatus | validateRequest(HttpServletRequest
contains the request the client has made request, HttpServletResponse contains the response that will be send to the client response, HttpMessageContext context for interacting with the container httpMessageContext)Implements jakarta. Authenticate an HTTP request. |
| httpAuthenticationMechanism | back to summary |
|---|---|
| private final HttpAuthenticationMechanism httpAuthenticationMechanism | |
| HttpAuthenticationMechanismWrapper | back to summary |
|---|---|
| public HttpAuthenticationMechanismWrapper() This constructor is intended for proxy usuage only. | |
| HttpAuthenticationMechanismWrapper | back to summary |
|---|---|
| public HttpAuthenticationMechanismWrapper(HttpAuthenticationMechanism httpAuthenticationMechanism) Constructs the wrapper with the object being delegated to.
| |
| cleanSubject | back to summary |
|---|---|
| public void cleanSubject(HttpServletRequest request, HttpServletResponse response, HttpMessageContext httpMessageContext) Overrides default jakarta. Doc from jakarta. Remove mechanism specific principals and credentials from the subject and any other state the mechanism might have used.
This method is called in response to
| |
| getWrapped | back to summary |
|---|---|
| public HttpAuthenticationMechanism getWrapped() Returns the object that's being wrapped.
| |
| secureResponse | back to summary |
|---|---|
| public AuthenticationStatus secureResponse(HttpServletRequest request, HttpServletResponse response, HttpMessageContext httpMessageContext) throws AuthenticationException Overrides default jakarta. Doc from jakarta. Secure the response, optionally.
This method is called to allow for any post processing to be done on the request, and is always invoked
after any
Note that this method is only called when a (Servlet) resource has indeed been invoked, i.e. if a previous call
to
| |
| validateRequest | back to summary |
|---|---|
| public AuthenticationStatus validateRequest(HttpServletRequest request, HttpServletResponse response, HttpMessageContext httpMessageContext) throws AuthenticationException Implements jakarta. Authenticate an HTTP request.
This method is called in response to an HTTP client request for a resource, and is always invoked
before any Note that by default this method is always called for every request, independent of whether the request is to a protected or non-protected resource, or whether a caller was successfully authenticated before within the same HTTP session or not.
A CDI/Interceptor spec interceptor can be used to prevent calls to this method if needed.
See
| |