com.sun.xml.wss
Class SubjectAccessor
java.lang.Object
com.sun.xml.wss.SubjectAccessor
public class SubjectAccessor
- extends java.lang.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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubjectAccessor
public SubjectAccessor()
getRequesterSubject
public static javax.security.auth.Subject getRequesterSubject(java.lang.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
- Throws:
XWSSecurityException
getRequesterSubject
public static javax.security.auth.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(javax.security.auth.Subject sub)
Copyright ? 2005 Sun Microsystems, Inc. All Rights Reserved.