Class SecurityContextFactory

java.lang.Object
org.apache.cxf.transport.jms.SecurityContextFactory

public final class SecurityContextFactory extends Object
  • Method Details

    • buildSecurityContext

      public static org.apache.cxf.security.SecurityContext buildSecurityContext(jakarta.jms.Message message, JMSConfiguration config) throws jakarta.jms.JMSException
      Extract the property JMSXUserID or JMS_TIBCO_SENDER from the jms message and create a SecurityContext from it. For more info see Jira Issue CXF-2055 {@link https://issues.apache.org/jira/browse/CXF-2055}
      Parameters:
      message - jms message to retrieve user information from
      Returns:
      SecurityContext that contains the user of the producer of the message as the Principal
      Throws:
      jakarta.jms.JMSException - if something goes wrong