Package org.apache.xml.security
Class Init
- java.lang.Object
-
- org.apache.xml.security.Init
-
public class Init extends java.lang.ObjectThis class does the configuration of the library. This includes creating the mapping of Canonicalization and Transform algorithms. Initialization is done by callinginit()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 booleanalreadyInitializedField alreadyInitializedstatic java.lang.StringCONF_NSThe namespace for CONF fileprivate static org.slf4j.LoggerLOG
-
Constructor Summary
Constructors Constructor Description Init()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static voiddynamicInit()Dynamically initialise the library by registering the default algorithms/implementationsprivate static voidfileInit(java.io.InputStream is)Initialise the library from a configuration filestatic voidinit()Method initstatic booleanisInitialized()Method isInitialized
-
-
-
Field Detail
-
CONF_NS
public static final java.lang.String CONF_NS
The namespace for CONF file- See Also:
- Constant Field Values
-
LOG
private static final org.slf4j.Logger LOG
-
alreadyInitialized
private static boolean alreadyInitialized
Field alreadyInitialized
-
-
Method Detail
-
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(java.io.InputStream is)
Initialise the library from a configuration file
-
-