Class MessageSecurityProviderManager
- java.lang.Object
-
- org.certificateservices.messages.csmessages.manager.MessageSecurityProviderManager
-
public class MessageSecurityProviderManager extends java.lang.ObjectFactory class in charge of creating and initializing a JMSMessageHandler from a given configuration. And store it as a singleton
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSETTING_MESSAGESECURITYPROVIDER_IMPLSetting indicating which implementation of JMS Handler that should be used.
-
Constructor Summary
Constructors Constructor Description MessageSecurityProviderManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MessageSecurityProvidergetMessageSecurityProvider()Method to fetch an initialized Message Security Provider.static MessageSecurityProviderinitMessageSecurityProvider(java.util.Properties config)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.static MessageSecurityProviderinitMessageSecurityProvider(MessageSecurityProvider messageSecurityProvider)Method to initialize the message security provider with a speicified message security providerstatic booleanisInitialized()
-
-
-
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
-
-
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.
-
getMessageSecurityProvider
public static MessageSecurityProvider getMessageSecurityProvider() throws MessageProcessingException
Method to fetch an initialized Message Security Provider.- Returns:
- the MessageSecurityProvider singleton, initialized.
- Throws:
MessageProcessingException- if no initialized MessageSecurityProvider exists.
-
-