Package com.sun.identity.setup
Class Bootstrap
- java.lang.Object
-
- com.sun.identity.setup.Bootstrap
-
public class Bootstrap extends Object
This class is responsible for bootstrapping the WAR.
-
-
Field Summary
Fields Modifier and Type Field Description static String
JVM_OPT_BOOTSTRAP
Directory where bootstrap file resides.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
bootstrap(BootstrapData bootstrapInfo, boolean reinit)
Returnstrue
if able to bootstrap the system.static void
load()
Loads System Property with the bootstrap file that is found inJVM_OPT_BOOTSTRAP
stated directory.static Properties
load(String basedir, boolean bServer)
Loads System Property with the bootstrap file that is found in a directory.static void
modifyDSAMEUserPassword(String password)
Modifies thedsameuser
password in bootstrap file.
-
-
-
Field Detail
-
JVM_OPT_BOOTSTRAP
public static final String JVM_OPT_BOOTSTRAP
Directory where bootstrap file resides.- See Also:
- Constant Field Values
-
-
Method Detail
-
load
public static void load() throws Exception
Loads System Property with the bootstrap file that is found inJVM_OPT_BOOTSTRAP
stated directory.- Throws:
Exception
- if properties cannot be loaded.
-
load
public static Properties load(String basedir, boolean bServer) throws Exception
Loads System Property with the bootstrap file that is found in a directory.- Parameters:
basedir
- Directory where bootstrap file resides. bootstrap file can contain either an URL where we can go fetch the server configuration properties or a file that contains the properties.bServer
-true
if server.- Throws:
Exception
- if properties cannot be loaded.
-
bootstrap
public static boolean bootstrap(BootstrapData bootstrapInfo, boolean reinit) throws Exception
Returnstrue
if able to bootstrap the system.- Parameters:
bootstrapInfo
- object that contains information on how to fetch the server configuration properties.reinit
-true
to re initialize the system.- Throws:
Exception
- if there are errors in bootstrapping.
-
modifyDSAMEUserPassword
public static void modifyDSAMEUserPassword(String password) throws IOException
Modifies thedsameuser
password in bootstrap file.- Parameters:
password
- New Password.- Throws:
IOException
- if modification fails.
-
-