Class SecurityContextFactory


  • public final class SecurityContextFactory
    extends Object
    • Method Detail

      • buildSecurityContext

        public static SecurityContext buildSecurityContext​(javax.jms.Message message,
                                                           JMSConfiguration config)
                                                    throws javax.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:
        javax.jms.JMSException - if something goes wrong