com.sun.xml.wss
Class SubjectAccessor
java.lang.Object
com.sun.xml.wss.SubjectAccessor
public class SubjectAccessor
- extends Object
Class that can be used on the ServerSide by the SEI implementation methods, Callback Handlers
and Standalone SAAJ Applications using XWSS.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubjectAccessor
public SubjectAccessor()
getRequesterSubject
public static Subject getRequesterSubject(Object context)
throws XWSSecurityException
- 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 javax.xml.ws.handler.MessageContext or
javax.xml.ws.WebServiceContext
- Throws:
XWSSecurityException
getRequesterSubject
public static Subject 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
public static void setRequesterSubject(Subject sub)
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.