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 StringJVM_OPT_BOOTSTRAPDirectory where bootstrap file resides.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanbootstrap(BootstrapData bootstrapInfo, boolean reinit)Returnstrueif able to bootstrap the system.static voidload()Loads System Property with the bootstrap file that is found inJVM_OPT_BOOTSTRAPstated directory.static Propertiesload(String basedir, boolean bServer)Loads System Property with the bootstrap file that is found in a directory.static voidmodifyDSAMEUserPassword(String password)Modifies thedsameuserpassword 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 ExceptionLoads System Property with the bootstrap file that is found inJVM_OPT_BOOTSTRAPstated 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-trueif server.- Throws:
Exception- if properties cannot be loaded.
-
bootstrap
public static boolean bootstrap(BootstrapData bootstrapInfo, boolean reinit) throws Exception
Returnstrueif able to bootstrap the system.- Parameters:
bootstrapInfo- object that contains information on how to fetch the server configuration properties.reinit-trueto re initialize the system.- Throws:
Exception- if there are errors in bootstrapping.
-
modifyDSAMEUserPassword
public static void modifyDSAMEUserPassword(String password) throws IOException
Modifies thedsameuserpassword in bootstrap file.- Parameters:
password- New Password.- Throws:
IOException- if modification fails.
-
-