ServerAuthpublic interface ServerAuth An implementation of this interface is used to validate received service
request messages, and to secure service response messages. |
Methods Summary |
---|
public void | cleanSubject(MessageInfo messageInfo, javax.security.auth.Subject subject)Remove method specific principals and credentials from the subject.
| public AuthStatus | secureResponse(MessageInfo messageInfo, javax.security.auth.Subject serviceSubject)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.
| public AuthStatus | validateRequest(MessageInfo messageInfo, javax.security.auth.Subject clientSubject, javax.security.auth.Subject serviceSubject)Authenticate a received service request.
This method is called to transform the mechanism-specific request
message acquired by calling getRequestMessage (on messageInfo)
into the validated application message to be returned to the message
processing runtime.
If the received message is a (mechanism-specific) meta-message,
the method implementation must attempt to transform the meta-message
into a corresponding mechanism-specific response message, or to the
validated application request message.
The runtime will bind a validated application message into the
the corresponding service invocation.
This method conveys the outcome of its message processing either
by returning an AuthStatus value or by throwing an AuthException.
|
|