public class HttpServletServerAuthModule extends DelegatingServerAuthModule
callbackHandler, options, requestPolicy, responsePolicy, supportedTypes
Constructor and Description |
---|
HttpServletServerAuthModule() |
HttpServletServerAuthModule(String lmshName) |
Modifier and Type | Method and Description |
---|---|
AuthStatus |
secureResponse(MessageInfo arg0,
Subject arg1)
Secure a service response before sending it to the client.
|
protected boolean |
validate(Subject clientSubject,
MessageInfo messageInfo)
Subclasses have to implement this method to actually validate the subject
|
cleanSubject, getSupportedMessageTypes
getCallbackHandler, initialize, setCallbackHandler, validateRequest
public HttpServletServerAuthModule()
public HttpServletServerAuthModule(String lmshName)
protected boolean validate(Subject clientSubject, MessageInfo messageInfo) throws AuthException
AbstractServerAuthModule
validate
in class DelegatingServerAuthModule
AuthException
public AuthStatus secureResponse(MessageInfo arg0, Subject arg1) throws AuthException
ServerAuth
This method conveys the outcome of its message processing either by returning an AuthStatus value or by throwing an AuthException.
secureResponse
in interface ServerAuth
secureResponse
in class DelegatingServerAuthModule
arg0
- A contextual object that encapsulates the client request and server response objects, and that may
be used to save state across a sequence of calls made to the methods of this interface for the purpose of completing
a secure message exchange.arg1
- A Subject that represents the source of the service response, or null. It may be used by the
method implementation to retrieve Principals and credentials necessary to secure the response. If the Subject is not
null, the method implementation may add additional Principals or credentials (pertaining to the source of the service
response) to the Subject.AuthException
- When the message processing failed without establishing a failure response message (in
messageInfo).Copyright © 2021 JBoss by Red Hat. All rights reserved.