public class CoGProperties extends Properties
Modifier and Type | Field and Description |
---|---|
static String |
BASEDN |
static String |
CERT_CACHE_LIFETIME |
static String |
CONFIG_FILE
the configuration file properties are read from --
located in ~/.globus"
|
static String |
configFile
the config file location
|
static String |
CRL_CACHE_LIFETIME
Deprecated.
|
static String |
DELEGATION_KEY_CACHE_LIFETIME |
static String |
ENFORCE_SIGNING_POLICY |
static String |
MDSHOST |
static String |
MDSPORT |
static String |
NO_CACHE |
static String |
THREADED_CACHE |
defaults
Constructor and Description |
---|
CoGProperties() |
CoGProperties(String file) |
Modifier and Type | Method and Description |
---|---|
boolean |
enforceSigningPolicy() |
static void |
fixSpace(Properties p) |
protected boolean |
getAsBoolean(String key,
boolean defaultValue) |
protected int |
getAsInt(String label,
int defValue) |
String |
getCaCertLocations()
Retrieves the location of the CA certificate files.
|
long |
getCertCacheLifetime()
Returns the Cert cache lifetime.
|
long |
getCRLCacheLifetime()
Deprecated.
replaced by
getCertCacheLifetime() |
static CoGProperties |
getDefault() |
String |
getDefaultPKCS11Handle() |
int |
getDelegationKeyCacheLifetime()
Returns the delegation key cache lifetime for all delegations from this
JVM.
|
String |
getHostName()
Returns the user specified hostname.
|
String |
getIPAddress()
Returns the user specified ip address.
|
String |
getPKCS11LibraryName() |
String |
getProxyFile()
Retrieves the location of the proxy file.
|
int |
getProxyLifeTime() |
int |
getProxyStrength() |
String |
getReverseDNSCacheType()
Returns the reverse DNS cache type.
|
long |
getReveseDNSCacheLifetime()
Returns the reverse DNS cache time.
|
String |
getSecureRandomAlgorithm() |
String |
getSecureRandomProvider() |
int |
getSocketTimeout()
Returns the timeout (in milliseconds) for sockets operations.
|
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 |
setSocketTimeout(int socketTimeout) |
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.
|
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, values
public static final String ENFORCE_SIGNING_POLICY
public static final String DELEGATION_KEY_CACHE_LIFETIME
@Deprecated public static final String CRL_CACHE_LIFETIME
public static final String CERT_CACHE_LIFETIME
public static final String MDSHOST
public static final String MDSPORT
public static final String BASEDN
public static final String NO_CACHE
public static final String THREADED_CACHE
public static final String CONFIG_FILE
public static String configFile
public CoGProperties()
public CoGProperties(String file) throws IOException
IOException
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
load
in class Properties
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 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 int getDelegationKeyCacheLifetime()
@Deprecated public long getCRLCacheLifetime()
getCertCacheLifetime()
NumberFormatException
- if the cache lifetime property
could not be parsedpublic long getCertCacheLifetime() throws NumberFormatException
NumberFormatException
- if the cache lifetime property
could not be parsedpublic long getReveseDNSCacheLifetime() throws NumberFormatException
NumberFormatException
- if the cache lifetime property
could not be parsedpublic String getReverseDNSCacheType()
public String getSecureRandomProvider()
public String getSecureRandomAlgorithm()
public int getSocketTimeout()
public void setSocketTimeout(int socketTimeout)
public int getProxyStrength()
public void setProxyStrength(int strength)
public int getProxyLifeTime()
public void setProxyLifeTime(int lifeTimeInHours)
protected boolean getAsBoolean(String key, boolean defaultValue)
protected int getAsInt(String label, int defValue)
protected static final boolean isNullOrEmpty(String tmp)
Copyright © 2016. All rights reserved.