|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
java.util.Properties
org.globus.common.CoGProperties
Responsible for managing the properties file "~/.globus/cog.properties", which holds information about various properties needed by the security classes. These properties include:
Field Summary | |
static String |
BASEDN
|
static String |
CONFIG_FILE
the configuration file properties are read from -- located in ~/.globus" |
static String |
configFile
the config file location |
static String |
ENFORCE_SIGNING_POLICY
|
static String |
MDSHOST
|
static String |
MDSPORT
|
Fields inherited from class java.util.Properties |
defaults |
Constructor Summary | |
CoGProperties()
|
|
CoGProperties(String file)
|
Method Summary | |
boolean |
enforceSigningPolicy()
|
static void |
fixSpace(Properties p)
|
protected boolean |
getAsBoolean(String key,
boolean defaultValue)
|
protected int |
getAsInt(String label,
int defValue)
|
String |
getCaCertFile()
Deprecated. Use getCaCertLocations() instead. |
String |
getCaCertLocations()
Retrieves the location of the CA certificate files. |
String |
getCaCerts()
Deprecated. Use getCaCertLocations() instead. |
static CoGProperties |
getDefault()
|
String |
getDefaultPKCS11Handle()
|
String |
getHostName()
Returns the user specified hostname. |
String |
getIPAddress()
Returns the user specified ip address. |
String |
getOrgMDSBaseDN()
|
String |
getOrgMDSHost()
|
String |
getOrgMDSPort()
|
String |
getPKCS11LibraryName()
|
String |
getProxyFile()
Retrieves the location of the proxy file. |
int |
getProxyLifeTime()
|
int |
getProxyStrength()
|
String |
getRootMDSBaseDN()
|
String |
getRootMDSHost()
|
String |
getRootMDSPort()
|
String |
getSecureRandomAlgorithm()
|
String |
getSecureRandomProvider()
|
String |
getTcpPortRange()
Returns the tcp port range. |
String |
getTcpSourcePortRange()
Returns the tcp source port range. |
String |
getUdpSourcePortRange()
Returns the udp source port range. |
String |
getUserCertFile()
Retrieves the location of the user cert file. |
String |
getUserKeyFile()
Retrieves the location of the user key file. |
protected static boolean |
isNullOrEmpty(String tmp)
|
void |
load(InputStream in)
|
void |
load(String file)
|
void |
save()
|
void |
save(String file)
|
void |
setCaCertLocations(String list)
|
static void |
setDefault(CoGProperties properties)
Sets default configuration. |
void |
setHostName(String host)
Sets hostname |
void |
setIPAddress(String ipAddress)
Sets ip address |
void |
setProxyFile(String proxyFile)
|
void |
setProxyLifeTime(int lifeTimeInHours)
|
void |
setProxyStrength(int strength)
|
void |
setUserCertFile(String userCertFile)
|
void |
setUserKeyFile(String userKeyFile)
Sets user key file location |
boolean |
useDevRandom()
Returns whether to use the /dev/urandom device for seed generation. |
Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, propertyNames, save, setProperty, store |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String ENFORCE_SIGNING_POLICY
public static final String MDSHOST
public static final String MDSPORT
public static final String BASEDN
public static final String CONFIG_FILE
public static String configFile
Constructor Detail |
public CoGProperties()
public CoGProperties(String file) throws IOException
Method Detail |
public static CoGProperties getDefault()
public static void setDefault(CoGProperties properties)
public void save() throws IOException
IOException
public void save(String file) throws IOException
IOException
public void load(String file) throws IOException
IOException
public void load(InputStream in) throws IOException
IOException
public static void fixSpace(Properties p)
public String getUserCertFile()
String
the location of the user cert filepublic void setUserCertFile(String userCertFile)
public String getPKCS11LibraryName()
public String getDefaultPKCS11Handle()
public String getUserKeyFile()
String
the location of the user key filepublic void setUserKeyFile(String userKeyFile)
userKeyFile
- user key file locationpublic String getHostName()
String
the hostname of the machine.public void setHostName(String host)
host
- hostnamepublic String getIPAddress()
getHostName()
function. If
getHostName()
returns a hostname that hostname is converted
into an IP address and it is returned. Otherwise, null is returned
(and default ip address will be used)
String
the ip address of the machine.public void setIPAddress(String ipAddress)
ipAddress
- ip addresspublic String getCaCertFile()
String
the locations of the CA certificatesgetCaCertLocations
public String getCaCerts()
String
the locations of the CA certificatesgetCaCertLocations
public String getCaCertLocations()
String
the locations of the CA certificatespublic void setCaCertLocations(String list)
public String getProxyFile()
String
the location of the proxy filepublic void setProxyFile(String proxyFile)
public String getTcpPortRange()
String
the port range.public String getTcpSourcePortRange()
String
the port range.public String getUdpSourcePortRange()
String
the port range.public boolean useDevRandom()
public boolean enforceSigningPolicy()
public String getSecureRandomProvider()
public String getSecureRandomAlgorithm()
public int getProxyStrength()
public void setProxyStrength(int strength)
public int getProxyLifeTime()
public void setProxyLifeTime(int lifeTimeInHours)
public String getRootMDSHost()
public String getRootMDSPort()
public String getRootMDSBaseDN()
public String getOrgMDSHost()
public String getOrgMDSPort()
public String getOrgMDSBaseDN()
protected boolean getAsBoolean(String key, boolean defaultValue)
protected int getAsInt(String label, int defValue)
protected static final boolean isNullOrEmpty(String tmp)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |