Package org.apache.cxf.transport.jms
Class SecurityContextFactory
- java.lang.Object
-
- org.apache.cxf.transport.jms.SecurityContextFactory
-
public final class SecurityContextFactory extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SecurityContextbuildSecurityContext(javax.jms.Message message, JMSConfiguration config)Extract the property JMSXUserID or JMS_TIBCO_SENDER from the jms message and create a SecurityContext from it.
-
-
-
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
-
-