|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.wss.provider.wsit.WSITServerAuthModule
public class WSITServerAuthModule
| Field Summary | |
|---|---|
protected static String |
DEBUG
|
| Constructor Summary | |
|---|---|
WSITServerAuthModule()
Creates a new instance of WSITServerAuthModule |
|
| Method Summary | |
|---|---|
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. |
void |
initialize(MessagePolicy requestPolicy,
MessagePolicy responsePolicy,
CallbackHandler handler,
Map options)
Initialize this module with request and response message policies to enforce, a CallbackHandler, and any module-specific configuration properties. |
AuthStatus |
secureResponse(MessageInfo messageInfo,
Subject serviceSubject)
Secure a service response before sending it to the client. |
AuthStatus |
validateRequest(MessageInfo messageInfo,
Subject clientSubject,
Subject serviceSubject)
Authenticate a received service request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String DEBUG
| Constructor Detail |
|---|
public WSITServerAuthModule()
| Method Detail |
|---|
public void initialize(MessagePolicy requestPolicy,
MessagePolicy responsePolicy,
CallbackHandler handler,
Map options)
throws AuthException
ServerAuthModuleThe request policy and the response policy must not both be null.
initialize in interface ServerAuthModulerequestPolicy - The request policy this module must enforce,
or null.responsePolicy - The response policy this module must enforce,
or null.handler - CallbackHandler used to request information.options - A Map of module-specific configuration properties.
AuthException - If module initialization fails, including for
the case where the options argument contains elements that are not
supported by the module.public Class[] getSupportedMessageTypes()
ServerAuthModule
getSupportedMessageTypes in interface ServerAuthModule
public AuthStatus validateRequest(MessageInfo messageInfo,
Subject clientSubject,
Subject serviceSubject)
throws AuthException
ServerAuthThis method conveys the outcome of its message processing either by returning an AuthStatus value or by throwing an AuthException.
validateRequest in interface ServerAuthmessageInfo - 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.clientSubject - A Subject that represents the source of the
service
request. It is used by the method implementation to store
Principals and credentials validated in the request.serviceSubject - A Subject that represents the recipient 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 validate the request. If the Subject is not null,
the method implementation may add additional Principals or
credentials (pertaining to the recipient of the service
request) to the Subject.
AuthException - When the message processing failed without
establishing a failure response message (in messageInfo).
public AuthStatus secureResponse(MessageInfo messageInfo,
Subject serviceSubject)
throws AuthException
ServerAuthThis method conveys the outcome of its message processing either by returning an AuthStatus value or by throwing an AuthException.
secureResponse in interface ServerAuthmessageInfo - 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.serviceSubject - 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).
public void cleanSubject(MessageInfo messageInfo,
Subject subject)
throws AuthException
ServerAuth
cleanSubject in interface ServerAuthmessageInfo - 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||