Class PKIMessageParserFactory


  • public class PKIMessageParserFactory
    extends java.lang.Object
    Factory class in charge of creating and initializing a PKI Message Parser from a given configuration.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String SETTING_PKIMESSAGEPARSER_IMPL
      Setting indicating which implementation of PKI Message Parser that should be used.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static PKIMessageParser genPKIMessageParser​(MessageSecurityProvider securityProvider, java.util.Properties config)
      Method to generate a new PKIMessageParser from the configuration, if setting "pkimessage.parser.impl" isn't set will the default message parser be created.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SETTING_PKIMESSAGEPARSER_IMPL

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

      • PKIMessageParserFactory

        public PKIMessageParserFactory()
    • Method Detail

      • genPKIMessageParser

        public static PKIMessageParser genPKIMessageParser​(MessageSecurityProvider securityProvider,
                                                           java.util.Properties config)
                                                    throws MessageException
        Method to generate a new PKIMessageParser from the configuration, if setting "pkimessage.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 PKI Message parser
        Throws:
        MessageException - if problems occurred creating a message parser.