public class IXSILInit
extends java.lang.Object
The initialization properties are organized in three property files:
init(iaik.ixsil.util.URI) method of this class.Algorithm
interface.| Modifier and Type | Field and Description |
|---|---|
protected static java.util.Properties |
algorithmProperties_
Contains the IXSIL algorithm properties.
|
static java.io.PrintStream |
debugLog_
The
PrintStream where the debug log is written to. |
protected static java.util.Properties |
initProperties_
Contains the IXSIL init properties.
|
protected static URI |
initPropertiesURI_
Contains the URI locating the IXSIL init properties file.
|
protected static java.util.Properties |
keyManagerProperties_
Contains the IXSIL keymanager properties.
|
protected static boolean |
printDebugLog_
An indicator whether debug log should be output or not.
|
| Constructor and Description |
|---|
IXSILInit() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Class |
forName(java.lang.String className)
This method is used internally by the Toolkit only to work around a
problem specific to IBM Java 1.3, in which the method
java.lang.Class.forName(String className) fails to
return the requested class. |
static java.lang.String |
getAlgorithmProperty(java.lang.String name)
Gets the IXSIL algorithm property with the specified name.
|
static java.io.PrintStream |
getDebugLogPrintStream()
Gets the Printstream IXSIL currently uses to write debug log to.
|
static URI |
getInitPropertiesURI()
Gets the URI locating the the IXSIL init properties file specified at the last invocation of the
init(iaik.ixsil.util.URI) method. |
static java.lang.String |
getInitProperty(java.lang.String name)
Gets the IXSIL init property with the specified name.
|
static java.lang.String |
getKeyManagerProperty(java.lang.String name)
Gets the IXSIL keymanager property with the specified name.
|
static boolean |
getPrintDebugLog()
Indicates whether IXSIL is currently configured to print debug log.
|
static void |
init(java.util.Properties initProperties,
java.util.Properties algorithmProperties,
java.util.Properties keyManagerProperties)
An alternative way for initializing the IXSIL API.
|
static void |
init(URI initPropertiesLocation)
Initializes IXSIL API with values provided by the specified IXSIL init properties file.
|
static void |
setAlgorithmProperty(java.lang.String name,
java.lang.String value)
Sets the IXSIL algorithm property with the specified name.
|
static void |
setDebugLogPrintStream(java.io.PrintStream debugLog)
Sets the PrintStream where the debug information is written to.
|
static void |
setInitProperty(java.lang.String name,
java.lang.String value)
Sets the IXSIL init property with the specified name.
|
static void |
setKeyManagerProperty(java.lang.String name,
java.lang.String value)
Sets the IXSIL keymanager property with the specified name.
|
static void |
setPrintDebugLog(boolean printDebugLog)
Sets whether or not IXSIL should pring debug log.
|
protected static void |
setProperty(java.util.Properties props,
java.lang.String name,
java.lang.String value)
Sets value of the property in the specified property object with the specified name.
|
protected static java.util.Properties initProperties_
protected static URI initPropertiesURI_
protected static java.util.Properties algorithmProperties_
protected static java.util.Properties keyManagerProperties_
public static java.io.PrintStream debugLog_
PrintStream where the debug log is written to.protected static boolean printDebugLog_
public static void init(URI initPropertiesLocation) throws InitException
initPropertiesLocation - An URI specifying the IXSIL init
properties file. If a relative URI is
specified, i. e. if there is no scheme part, then the properties file is
searched in the class path.InitException - if the IXSIL init properties cannot be read.public static void init(java.util.Properties initProperties,
java.util.Properties algorithmProperties,
java.util.Properties keyManagerProperties)
throws InitException
Properties objects. Please note: The property named
location.initProperties must be set in the IXSIL init properties, if this method
is used to initialize the library. See the inline documentation in the example IXSIL init properties
file that is shipped with IXSIL for further information.initProperties - The IXSIL init properties. Must not be null.algorithmProperties - The IXSIL algorithms properties. Must not be null.keyManagerProperties - The IXSIL keyManager properties. Must not be null.InitException - if initialization fails for any reason.public static URI getInitPropertiesURI()
init(iaik.ixsil.util.URI) method.public static java.lang.String getAlgorithmProperty(java.lang.String name)
name - the name of the IXSIL algorithm property which value is requested.null,
if a property with the specified name does not exist.public static void setAlgorithmProperty(java.lang.String name,
java.lang.String value)
name - The name of the IXSIL algorithm property, whose value should be set. If no property
with this name exists currently, a new property will be added. Must not be null
.value - The value of the IXSIL algorithm property, which should be set. Must not be
.public static java.lang.String getKeyManagerProperty(java.lang.String name)
name - the name of the IXSIL keymanager property which value is requested.null
, if a property with the specified name does not exist.public static void setKeyManagerProperty(java.lang.String name,
java.lang.String value)
name - The name of the IXSIL keymanager property, whose value should be set. If no property
with this name exists currently, a new property will be added. Must not be null
.value - The value of the IXSIL keymanager property, which should be set. Must not be
.public static java.lang.String getInitProperty(java.lang.String name)
name - the name of the IXSIL init property which value is requested.null, if a
property with the specified name does not exist.public static void setInitProperty(java.lang.String name,
java.lang.String value)
name - The name of the IXSIL init property, whose value should be set. If no property
with this name exists currently, a new property will be added. Must not be null
.value - The value of the IXSIL init property, which should be set. Must not be
.protected static void setProperty(java.util.Properties props,
java.lang.String name,
java.lang.String value)
props - The property object.name - The name of the property, whose value should be set.value - The value of the property, which should be set.public static java.io.PrintStream getDebugLogPrintStream()
public static void setDebugLogPrintStream(java.io.PrintStream debugLog)
System.err
.debugLog - The PrintStream where the debug information is written to.setPrintDebugLog(boolean)public static boolean getPrintDebugLog()
public static void setPrintDebugLog(boolean printDebugLog)
printDebugLog - Indicates whether or not IXSIL should pring debug log.setDebugLogPrintStream(java.io.PrintStream)public static java.lang.Class forName(java.lang.String className)
throws java.lang.ClassNotFoundException
java.lang.Class.forName(String className) fails to
return the requested class.
The Toolkit uses this method internally, and your application does not need to invoke it.
java.lang.ClassNotFoundException - if the class cannot be located.