public class DelegatingServerAuthModule extends AbstractServerAuthModule
callbackHandler, options, requestPolicy, responsePolicy, supportedTypes
Constructor and Description |
---|
DelegatingServerAuthModule() |
DelegatingServerAuthModule(String loginModuleStackHolderName) |
Modifier and Type | Method and Description |
---|---|
void |
cleanSubject(MessageInfo messageInfo,
Subject subject)
Remove method specific principals and credentials from the subject.
|
Class[] |
getSupportedMessageTypes()
Get the one or more Class objects representing the message
types supported by the module.
|
AuthStatus |
secureResponse(MessageInfo messageInfo,
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
|
getCallbackHandler, initialize, setCallbackHandler, validateRequest
public DelegatingServerAuthModule()
public DelegatingServerAuthModule(String loginModuleStackHolderName)
public Class[] getSupportedMessageTypes()
ServerAuthModule
Get the one or more Class objects representing the message types supported by the module.
getSupportedMessageTypes
in interface ServerAuthModule
getSupportedMessageTypes
in class AbstractServerAuthModule
ServerAuthModule.getSupportedMessageTypes()
public void cleanSubject(MessageInfo messageInfo, Subject subject) throws AuthException
ServerAuth
Remove method specific principals and credentials from the subject.
cleanSubject
in interface ServerAuth
cleanSubject
in class AbstractServerAuthModule
messageInfo
- - 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.subject
- - The Subject instance from which the Principals and credentials
are to be removed.AuthException
- if an error occurs during the Subject processing.public AuthStatus secureResponse(MessageInfo messageInfo, Subject arg1) throws AuthException
ServerAuth
Secure a service response before sending it to the client. This method is called to transform the response message acquired by calling getResponseMessage (on messageInfo) into the mechanism-specific form to be sent by the runtime.
This method conveys the outcome of its message processing either by returning an AuthStatus value or by throwing an AuthException.
messageInfo
- - 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 request,
or null. It may be used by the method implementation as the
source of Principals or credentials to be used to secure
the request. If the Subject is not null, the method
implementation may add additional Principals or credentials
(pertaining to the source of the service request) to the Subject.AuthException
- When the message processing failed without establishing a failure response message (in messageInfo).protected boolean validate(Subject clientSubject, MessageInfo messageInfo) throws AuthException
AbstractServerAuthModule
validate
in class AbstractServerAuthModule
AuthException
Copyright © 2016 JBoss by Red Hat. All rights reserved.