|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.globus.gridshib.config.BootstrapConfigLoader
public class BootstrapConfigLoader
A bootstrap properties file provides bootstrap configuration options to GridShib SAML Tools at startup. The following bootstrap properties are defined:
gridshib.logConfigPathgridshib.SAMLToolsConfigPathgridshib.certPathgridshib.keyPathgridshib.identityAttributesPathgridshib.cogConfigPathgridshib.SecurityContextImpl
This BootstrapConfigLoader attempts to
load a bootstrap properties file automatically. The
file is obtained in one of three ways (checked in order):
org.globus.gridshib.config for a
(system dependent) absolute path to a bootstrap
properties file$HOME/.globus/gridshib-bootstrap.properties
on UNIX systems (or
%USERPROFILE%\.globus\gridshib-bootstrap.properties
on Windows systems)/org/globus/gridshib/resource/gridshib-bootstrap.properties
on the classpathSystem.setProperty(String,String) to set
the system property org.globus.gridshib.config
before this class is initialized. See the
GridShib SAML Tools
Developer Guide
for additional information.
Once loaded, the BootstrapConfigLoader class
provides an API to override selected bootstrap properties.
| Method Summary | |
|---|---|
static File |
getConfigFileDefault()
Get the current value of the gridshib.SAMLToolsConfigPath bootstrap property. |
static GlobusCredential |
getCredentialDefault()
Get the current default issuing credential. |
static StringSetFile |
getIdentityAttributes()
Get the identity attributes. |
static String |
getKeyStoreKeyAliasDefault()
Get the value of the gridshib.keyStoreKeyAlias bootstrap property. |
static char[] |
getKeyStoreKeyPasswordDefault()
Get the value of the gridshib.keyStoreKeyPassword bootstrap property. |
static char[] |
getKeyStorePasswordDefault()
Get the value of the gridshib.keyStorePassword bootstrap property. |
static String |
getKeyStorePathDefault()
Get the value of the gridshib.keyStorePath bootstrap property. |
static String |
getLogConfigPathDefault()
Get the current value of the gridshib.logConfigPath bootstrap property. |
static String |
getProperty(Properties props,
String propName)
Gets the value of a GridShib Tool config property. |
static String |
getProperty(Properties props,
String propName,
String propValueDefault)
Gets the value of a GridShib Tool config property. |
static String |
getSecurityContextImpl()
Get the value of the gridshib.SecurityContextImpl bootstrap property. |
static void |
setCoGConfigPathDefault(String cogConfigPath)
Store the given path in the "org.globus.config.file" system property. |
static void |
setConfigFileDefault(String configPath)
Deprecated. As of 0.4.3, use SAMLToolsConfigLoader.getToolConfig(File)
or
SAMLToolsConfigLoader.load(File)
or
GlobusSAMLCredential.setDefaultConfigFile(String)
instead. This method will be removed in a future
version of GridShib SAML Tools. |
static void |
setCredentialDefault(GlobusCredential cred)
Deprecated. As of 0.4.3, use BasicConfig.setCredential(GlobusCredential)
or
GlobusSAMLCredential.setDefaultCredential(GlobusCredential)
instead. This method will be removed in a future
version of GridShib SAML Tools. |
static void |
setLogConfigPathDefault(String logConfigPath)
Set the path to the default log4j properties file and configure the logger. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void setLogConfigPathDefault(String logConfigPath)
GRIDSHIB_HOME is not null, the path is
resolved relative to GRIDSHIB_HOME.
logConfigPath - the path to a log4j properties filepublic static void setConfigFileDefault(String configPath)
SAMLToolsConfigLoader.getToolConfig(File)
or
SAMLToolsConfigLoader.load(File)
or
GlobusSAMLCredential.setDefaultConfigFile(String)
instead. This method will be removed in a future
version of GridShib SAML Tools.
GRIDSHIB_HOME is not null, the path is
resolved relative to GRIDSHIB_HOME.
configPath - the path to a GridShib SAML Tools
configuration properties filepublic static void setCredentialDefault(GlobusCredential cred)
BasicConfig.setCredential(GlobusCredential)
or
GlobusSAMLCredential.setDefaultCredential(GlobusCredential)
instead. This method will be removed in a future
version of GridShib SAML Tools.
cred - the default issuing credentialpublic static void setCoGConfigPathDefault(String cogConfigPath)
GRIDSHIB_HOME is not null, the path is
resolved relative to GRIDSHIB_HOME.
cogConfigPath - the path to a CoG properties filepublic static String getLogConfigPathDefault()
gridshib.logConfigPath bootstrap property.
public static File getConfigFileDefault()
gridshib.SAMLToolsConfigPath bootstrap property.
public static GlobusCredential getCredentialDefault()
public static StringSetFile getIdentityAttributes()
public static String getKeyStorePathDefault()
gridshib.keyStorePath bootstrap property.
The Java KeyStore is used solely for testing purposes.
public static char[] getKeyStorePasswordDefault()
gridshib.keyStorePassword bootstrap property.
The Java KeyStore is used solely for testing purposes.
public static String getKeyStoreKeyAliasDefault()
gridshib.keyStoreKeyAlias bootstrap property.
The Java KeyStore is used solely for testing purposes.
public static char[] getKeyStoreKeyPasswordDefault()
gridshib.keyStoreKeyPassword bootstrap property.
The Java KeyStore is used solely for testing purposes.
public static String getSecurityContextImpl()
gridshib.SecurityContextImpl bootstrap property.
This becomes the default SecurityContext
implementation in SecurityContextFactory.
SecurityContextFactory
public static String getProperty(Properties props,
String propName)
throws GridShibConfigException
props - the complete set of config propertiespropName - the config property of interest
GridShibConfigException - if the property value is missing or empty
public static String getProperty(Properties props,
String propName,
String propValueDefault)
props - the complete set of config propertiespropName - the config property of interestpropValueDefault - the default config property value,
which may be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||