Package com.sun.xml.wss
Class SubjectAccessor
java.lang.Object
com.sun.xml.wss.SubjectAccessor
Class that can be used on the ServerSide by the SEI implementation methods, Callback Handlers
and Standalone SAAJ Applications using XWSS.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Subject
static Subject
getRequesterSubject
(Object context) static void
-
Constructor Details
-
SubjectAccessor
public SubjectAccessor()
-
-
Method Details
-
getRequesterSubject
- Returns:
- the Requester's Subject if one is available, null otherwise. The subject is populated with credentials from the incoming secure message. Note: the context supplied should either be a ServletEndpointContext or a com.sun.xml.wss.ProcessingContext or jakarta.xml.ws.handler.MessageContext or jakarta.xml.ws.WebServiceContext
- Throws:
XWSSecurityException
-
getRequesterSubject
- Returns:
- the Requester's Subject if one is available, null otherwise.The subject is populated with credentials from the incoming secure message. This method should be used only with synchronous Request-Response Message Exchange Patterns.
-
setRequesterSubject
-