Class SubjectAccessor

java.lang.Object
com.sun.xml.wss.SubjectAccessor

public final 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.
  • Method Details

    • 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 jakarta.xml.ws.handler.MessageContext or jakarta.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)