Class CSMessageParserManager
- java.lang.Object
-
- org.certificateservices.messages.csmessages.CSMessageParserManager
-
public class CSMessageParserManager extends java.lang.ObjectFactory class in charge of creating and initializing a CS Message Parser from a given configuration.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSETTING_CSMESSAGEPARSER_IMPLSetting indicating which implementation of CS Message Parser that should be used.
-
Constructor Summary
Constructors Constructor Description CSMessageParserManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CSMessageParsergetCSMessageParser()Method to fetch an initialized CSMessageParser.static CSMessageParserinitCSMessageParser(MessageSecurityProvider securityProvider, java.util.Properties config)Method to generate a new CSMessageParser from the configuration, if setting "csmessage.parser.impl" isn't set will the default message parser be created.static booleanisInitialized()
-
-
-
Field Detail
-
SETTING_CSMESSAGEPARSER_IMPL
public static final java.lang.String SETTING_CSMESSAGEPARSER_IMPL
Setting indicating which implementation of CS Message Parser that should be used. By default is the Default Message Parser used.- See Also:
- Constant Field Values
-
-
Method Detail
-
initCSMessageParser
public static CSMessageParser initCSMessageParser(MessageSecurityProvider securityProvider, java.util.Properties config) throws MessageProcessingException
Method to generate a new CSMessageParser from the configuration, if setting "csmessage.parser.impl" isn't set will the default message parser be created.- Parameters:
securityProvider- the security provider used for the message parser.config- the configuration context.- Returns:
- a newly created CS Message parser
- Throws:
MessageProcessingException- if problems occurred creating a message parser.
-
isInitialized
public static boolean isInitialized()
- Returns:
- true if CSMessageParser have been initialized.
-
getCSMessageParser
public static CSMessageParser getCSMessageParser() throws MessageProcessingException
Method to fetch an initialized CSMessageParser.- Returns:
- the CSMessageParser singleton, initialized.
- Throws:
MessageProcessingException- if no initialized CSMessageParser exists.
-
-