Class 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.
    • Constructor Detail

      • SubjectAccessor

        public SubjectAccessor()
    • Method Detail

      • getRequesterSubject

        public static Subject getRequesterSubject​(Object context)
                                           throws com.sun.xml.wss.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 jakarta.xml.ws.handler.MessageContext or jakarta.xml.ws.WebServiceContext
        Throws:
        com.sun.xml.wss.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)