Class MessageSecurityProviderManager


  • public class MessageSecurityProviderManager
    extends java.lang.Object
    Factory class in charge of creating and initializing a JMSMessageHandler from a given configuration. And store it as a singleton
    • Field Detail

      • SETTING_MESSAGESECURITYPROVIDER_IMPL

        public static final java.lang.String SETTING_MESSAGESECURITYPROVIDER_IMPL
        Setting indicating which implementation of JMS Handler that should be used. By default is the ActiveMQ Message Parser used.
        See Also:
        Constant Field Values
    • Constructor Detail

      • MessageSecurityProviderManager

        public MessageSecurityProviderManager()
    • Method Detail

      • initMessageSecurityProvider

        public static MessageSecurityProvider initMessageSecurityProvider​(MessageSecurityProvider messageSecurityProvider)
                                                                   throws MessageProcessingException
        Method to initialize the message security provider with a speicified message security provider
        Parameters:
        messageSecurityProvider - message security provider to initizialize the manager with.
        Returns:
        a newly created MessageSecurityProvider
        Throws:
        MessageProcessingException - if problems occurred creating a message handler.
      • initMessageSecurityProvider

        public static MessageSecurityProvider initMessageSecurityProvider​(java.util.Properties config)
                                                                   throws MessageProcessingException
        Method to generate a new MessageSecurity configuration from the configuration, if setting "messagesecurityprovider.impl" isn't set will the default message security provider (SimpleSecurityProvider) wihh be created.
        Parameters:
        config - the configuration context.
        Returns:
        a newly created MessageSecurityProvider
        Throws:
        MessageProcessingException - if problems occurred creating a message handler.
      • isInitialized

        public static boolean isInitialized()
        Returns:
        true if this provider have been initialized.