public class SimpleServerAuthModule extends AbstractServerAuthModule
callbackHandler, options, requestPolicy, responsePolicy, supportedTypes
Constructor and Description |
---|
SimpleServerAuthModule() |
SimpleServerAuthModule(Class<?>[] supTypes) |
Modifier and Type | Method and Description |
---|---|
AuthStatus |
secureResponse(MessageInfo param,
Subject source)
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, getCallbackHandler, getSupportedMessageTypes, initialize, setCallbackHandler, validateRequest
public SimpleServerAuthModule()
public SimpleServerAuthModule(Class<?>[] supTypes)
public AuthStatus secureResponse(MessageInfo param, Subject source) 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.
param
- - 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.source
- - 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).ServerAuth.secureResponse(javax.security.auth.message.MessageInfo, javax.security.auth.Subject)
protected boolean validate(Subject clientSubject, MessageInfo messageInfo) throws AuthException
AbstractServerAuthModule
validate
in class AbstractServerAuthModule
AuthException
Copyright © 2016 JBoss by Red Hat. All rights reserved.