Class Init

java.lang.Object
org.apache.xml.security.Init

public class Init extends Object
This class does the configuration of the library. This includes creating the mapping of Canonicalization and Transform algorithms. Initialization is done by calling init() which should be done in any static block of the files of this library. We ensure that this call is only executed once.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static boolean
    Field alreadyInitialized
    static final String
    The namespace for CONF file
    private static final org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static void
    Dynamically initialise the library by registering the default algorithms/implementations
    private static void
    Initialise the library from a configuration file
    static void
    Method init
    static final boolean
    Method isInitialized

    Methods inherited from class java.lang.Object

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

    • CONF_NS

      public static final String CONF_NS
      The namespace for CONF file
      See Also:
    • LOG

      private static final org.slf4j.Logger LOG
    • alreadyInitialized

      private static boolean alreadyInitialized
      Field alreadyInitialized
  • Constructor Details

    • Init

      public Init()
  • Method Details

    • isInitialized

      public static final boolean isInitialized()
      Method isInitialized
      Returns:
      true if the library is already initialized.
    • init

      public static void init()
      Method init
    • dynamicInit

      private static void dynamicInit()
      Dynamically initialise the library by registering the default algorithms/implementations
    • fileInit

      private static void fileInit(InputStream is)
      Initialise the library from a configuration file