be.SIRAPRISE.client
Class DBConnectionProperties

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<java.lang.Object,java.lang.Object>
          extended by java.util.Properties
              extended by be.erwinsmout.MyProperties
                  extended by be.SIRAPRISE.client.DBConnectionProperties
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>

public class DBConnectionProperties
extends MyProperties

The DBConnectionProperties singleton holds the property values mentioned in the DBCONNECTION.PROPERTIES file. This DBCONNECTION.PROPERTIES can be held in the file system, or be packaged in a jar file that is on the client's classpath. If both are present, only the file in the file system is used. If no DBCONNECTION.PROPERTIES file exists in the file system, but multiple jars are on the classpath holding such a file, then which DBCONNECTION.PROPERTIES file is actually loaded is undetermined. This situation should be avoided.

Author:
Erwin Smout
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class be.erwinsmout.MyProperties
MyProperties.SKIPAUTOLOAD
 
Field Summary
static java.lang.String CRYPTOALGORITHMS
          The name of the property used to indicate the set of crypto algorithm names that can be used by a client
static java.lang.String DDLCAPTURE
          The name for the property configuring the DBConnection-level default DDLCAPTURE setting for transactions started by methods not explicitly providing this setting
static java.lang.String DEFAULTAUTOCOMMITFORTRANSACTIONS
          The name of the property that specifies the (default) transaction autocommit setting for all connections created using a constructor that does not explicitly provide this information.
static java.lang.String DEFAULTCONNECTIONIDLETIME
          The property name for specifying the connection idle time for all connections created using a DBConnection constructor that does not specify an explicit idle time.
static java.lang.String DEFAULTENCRYPTIONALGORITHMNAMES
          The name of the property that specifies which ciphers will be used by connections that are created by a constructor that did not explicitly provide this information
static java.lang.String DEFAULTENCRYPTIONALGORITHMNAMESDEFAULT
          The value used for the DEFAULTENCRYPTIONALGORITHMNAMES property if no value is explicitly configured
static java.lang.String DEFAULTSIGNATUREALGORITHMNAMES
          The name of the property that specifies which signature algorithms can be employed by a DBConnection that is created using a constructor that does not explicitly provide this information.
static java.lang.String DEFAULTSIGNATUREALGORITHMNAMESDEFAULT
          The default value for the signature algorithms list that will be used for the DEFAULTSIGNATUREALGORITHMNAMES property, if no value is configured
static java.lang.String HOST
          The property name for specifying the host to which a client is to connect
static java.lang.String HOSTDEFAULT
          The default value for the HOST property
static java.lang.String MONITORPORT
           
static java.lang.String MONITORPORTDEFAULT
           
static java.lang.String PORT
          The property name for specifying the IP port on some host to which SIRA_PRISE clients are to connect
static java.lang.String PORTDEFAULT
          The default value for the PORT property
static java.lang.String SIGNINGALGORITHMS
          The name of the property used to indicate the set of signing algorithm names that can be used by a client
static java.lang.String TRANSACTIONSREADONLY
          The name of the property that specifies the (default !)
static java.lang.String USER
          The property name for specifying the user that will be owning the transactions started by some client
static java.lang.String USERDEFAULT
          The default value for the USER property
 
Fields inherited from class be.erwinsmout.MyProperties
SUFFIX
 
Method Summary
static java.util.Set<java.lang.String> getCryptoAlgorithmNameSet(java.lang.String cryptoAlgorithmNameList)
          Gets a Set of supported crypto algorithm names out of a comma-separated list of such names.
static java.util.Properties getInstance()
          Gets the instance
static java.util.Set<java.lang.String> getSigningAlgorithmNameSet(java.lang.String clientSigningAlgorithmNameList)
          Gets a Set of supported signing algorithm names out of a comma-separated list of such names.
 
Methods inherited from class be.erwinsmout.MyProperties
resolveSystemPropertyRefs
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CRYPTOALGORITHMS

public static final java.lang.String CRYPTOALGORITHMS
The name of the property used to indicate the set of crypto algorithm names that can be used by a client

See Also:
Constant Field Values

DEFAULTAUTOCOMMITFORTRANSACTIONS

public static final java.lang.String DEFAULTAUTOCOMMITFORTRANSACTIONS
The name of the property that specifies the (default) transaction autocommit setting for all connections created using a constructor that does not explicitly provide this information. Note that this value can still be "overridden" if a transaction is started using an explicitly specified autocommit setting in the startTransaction() invocation.

See Also:
Constant Field Values

DEFAULTCONNECTIONIDLETIME

public static final java.lang.String DEFAULTCONNECTIONIDLETIME
The property name for specifying the connection idle time for all connections created using a DBConnection constructor that does not specify an explicit idle time.

See Also:
Constant Field Values

DEFAULTENCRYPTIONALGORITHMNAMES

public static final java.lang.String DEFAULTENCRYPTIONALGORITHMNAMES
The name of the property that specifies which ciphers will be used by connections that are created by a constructor that did not explicitly provide this information

See Also:
Constant Field Values

DEFAULTENCRYPTIONALGORITHMNAMESDEFAULT

public static final java.lang.String DEFAULTENCRYPTIONALGORITHMNAMESDEFAULT
The value used for the DEFAULTENCRYPTIONALGORITHMNAMES property if no value is explicitly configured

See Also:
Constant Field Values

DEFAULTSIGNATUREALGORITHMNAMES

public static final java.lang.String DEFAULTSIGNATUREALGORITHMNAMES
The name of the property that specifies which signature algorithms can be employed by a DBConnection that is created using a constructor that does not explicitly provide this information.

See Also:
Constant Field Values

DEFAULTSIGNATUREALGORITHMNAMESDEFAULT

public static final java.lang.String DEFAULTSIGNATUREALGORITHMNAMESDEFAULT
The default value for the signature algorithms list that will be used for the DEFAULTSIGNATUREALGORITHMNAMES property, if no value is configured

See Also:
Constant Field Values

HOST

public static final java.lang.String HOST
The property name for specifying the host to which a client is to connect

See Also:
Constant Field Values

HOSTDEFAULT

public static final java.lang.String HOSTDEFAULT
The default value for the HOST property

See Also:
Constant Field Values

MONITORPORT

public static final java.lang.String MONITORPORT
See Also:
Constant Field Values

MONITORPORTDEFAULT

public static final java.lang.String MONITORPORTDEFAULT
See Also:
Constant Field Values

PORT

public static final java.lang.String PORT
The property name for specifying the IP port on some host to which SIRA_PRISE clients are to connect

See Also:
Constant Field Values

PORTDEFAULT

public static final java.lang.String PORTDEFAULT
The default value for the PORT property

See Also:
Constant Field Values

SIGNINGALGORITHMS

public static final java.lang.String SIGNINGALGORITHMS
The name of the property used to indicate the set of signing algorithm names that can be used by a client

See Also:
Constant Field Values

TRANSACTIONSREADONLY

public static final java.lang.String TRANSACTIONSREADONLY
The name of the property that specifies the (default !) read-only mode setting for all transactions started on a connection created using a constructor that does not explicitly state this value.

See Also:
Constant Field Values

USER

public static final java.lang.String USER
The property name for specifying the user that will be owning the transactions started by some client

See Also:
Constant Field Values

USERDEFAULT

public static final java.lang.String USERDEFAULT
The default value for the USER property

See Also:
Constant Field Values

DDLCAPTURE

public static final java.lang.String DDLCAPTURE
The name for the property configuring the DBConnection-level default DDLCAPTURE setting for transactions started by methods not explicitly providing this setting

See Also:
Constant Field Values
Method Detail

getCryptoAlgorithmNameSet

public static java.util.Set<java.lang.String> getCryptoAlgorithmNameSet(java.lang.String cryptoAlgorithmNameList)
Gets a Set of supported crypto algorithm names out of a comma-separated list of such names.

Parameters:
cryptoAlgorithmNameList - A textual specification in the form of a comma-separated list of Cipher names
Returns:
a Set of supported crypto algorithm names out of a comma-separated list of such names.

getInstance

public static java.util.Properties getInstance()
Gets the instance

Returns:
the instance

getSigningAlgorithmNameSet

public static java.util.Set<java.lang.String> getSigningAlgorithmNameSet(java.lang.String clientSigningAlgorithmNameList)
Gets a Set of supported signing algorithm names out of a comma-separated list of such names.

Parameters:
clientSigningAlgorithmNameList - A comma-separated list of Signature names.
Returns:
a Set of supported signing algorithm names out of a comma-separated list of such names.