public class AllFailureServerAuthModule extends AbstractServerAuthModule
callbackHandler, options, requestPolicy, responsePolicy, supportedTypes
Constructor and Description |
---|
AllFailureServerAuthModule() |
Modifier and Type | Method and Description |
---|---|
Class[] |
getSupportedMessageTypes()
Get the one or more Class objects representing the message
types supported by the module.
|
AuthStatus |
secureResponse(MessageInfo arg0,
Subject arg1)
Secure a service request message before sending it to the service.
|
protected boolean |
validate(Subject clientSubject,
MessageInfo messageInfo)
Subclasses have to implement this method to actually validate the subject
|
cleanSubject, getCallbackHandler, initialize, setCallbackHandler, validateRequest
protected boolean validate(Subject clientSubject, MessageInfo messageInfo) throws AuthException
AbstractServerAuthModule
validate
in class AbstractServerAuthModule
AuthException
public AuthStatus secureResponse(MessageInfo arg0, Subject arg1) throws AuthException
ServerAuth
Secure a service request message before sending it to the service.
Sign and encrpt the service request, for example.
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 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 module wishes to signal a failure in securing
the request and without establishing a corresponding error request
message. The runtime must discontinue its processing of the message
exchange.public Class[] getSupportedMessageTypes()
ServerAuthModule
getSupportedMessageTypes
in interface ServerAuthModule
getSupportedMessageTypes
in class AbstractServerAuthModule
ServerAuthModule.getSupportedMessageTypes()
Copyright © 2018 JBoss by Red Hat. All rights reserved.