amwebarsentitlementservice.configuration
Class Configuration
java.lang.Object
|
+--java.util.Dictionary
|
+--java.util.Hashtable
|
+--java.util.Properties
|
+--amwebarsentitlementservice.configuration.Configuration
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Map, java.io.Serializable
- public class Configuration
- extends java.util.Properties
- See Also:
- Serialized Form
Inner classes inherited from class java.util.Map |
java.util.Map.Entry |
Fields inherited from class java.util.Properties |
defaults |
Constructor Summary |
Configuration()
Constructor for Configuration. |
Configuration(java.util.Properties arg0)
Constructor for Configuration. |
Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
CLASS_NAME
public static final java.lang.String CLASS_NAME
Configuration
public Configuration()
- Constructor for Configuration.
Configuration
public Configuration(java.util.Properties arg0)
- Constructor for Configuration.
- Parameters:
arg0
-
getInstance
public static Configuration getInstance()
- Returns the only instance of the Configuration.
- Returns:
- only instance of Configuration
loadKeyStore
public void loadKeyStore()
throws java.io.IOException,
java.security.KeyStoreException
- Loads the central key_store from the defined file.
getKeyStore
public java.security.KeyStore getKeyStore()
throws java.io.IOException,
java.security.KeyStoreException
isPropertyTrue
public boolean isPropertyTrue(java.lang.String key,
boolean default_value)
equals
public boolean equals(java.lang.Object other_object)
- Tests whether this Configuration is equal to another.
- Overrides:
equals
in class java.util.Hashtable
- Returns:
- boolean true if both obj are the same.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.util.Hashtable
getConfigFilename
public java.lang.String getConfigFilename()
- Returns the config_filename.
- Returns:
- String
setConfigFilename
public void setConfigFilename(java.lang.String config_filename)
- Sets the config_filename.
- Parameters:
config_filename
- The config_filename to set
getKeyStoreFilename
public java.lang.String getKeyStoreFilename()
- Returns the key_store_filename.
- Returns:
- String