- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<Object,Object>
-
- java.util.Properties
-
- com.appslandia.common.crypto.SecureProps
-
public class SecureProps extends Properties implements Config
- Author:
- Loc Ha
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.Properties
defaults
-
-
Constructor Summary
Constructors Constructor Description SecureProps(char[] password)SecureProps(Encryptor encryptor)SecureProps(TextEncryptor textEncryptor)SecureProps(String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurePropscopy()SecurePropsenc(String key, boolean value)SecurePropsenc(String key, double value)SecurePropsenc(String key, float value)SecurePropsenc(String key, int value)SecurePropsenc(String key, long value)SecurePropsenc(String key, String value)Stringget(Object key)StringgetString(String key)Objectput(Object key, Object value)SecurePropsset(String key, boolean value)SecurePropsset(String key, double value)SecurePropsset(String key, int value)SecurePropsset(String key, long value)SecurePropsset(String key, String value)voidstore(File file, String comments)voidstore(OutputStream os, String comments)voidstore(Writer w, String comments)voidstore(String file, String comments)protected PropertiestoProperties()StringtoString()-
Methods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, storeToXML, storeToXML, storeToXML, stringPropertyNames, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.appslandia.common.base.Config
getBool, getDouble, getFormatted, getFormatted, getFormatted, getInt, getLong, getRequiredBool, getRequiredDouble, getRequiredFormatted, getRequiredFormatted, getRequiredFormatted, getRequiredInt, getRequiredLong, getRequiredString, getString, getStringArray
-
-
-
-
Constructor Detail
-
SecureProps
public SecureProps(char[] password)
-
SecureProps
public SecureProps(String password)
-
SecureProps
public SecureProps(Encryptor encryptor)
-
SecureProps
public SecureProps(TextEncryptor textEncryptor)
-
-
Method Detail
-
set
public SecureProps set(String key, String value)
-
set
public SecureProps set(String key, boolean value)
-
set
public SecureProps set(String key, int value)
-
set
public SecureProps set(String key, long value)
-
set
public SecureProps set(String key, double value)
-
enc
public SecureProps enc(String key, String value) throws CryptoException
- Throws:
CryptoException
-
enc
public SecureProps enc(String key, boolean value) throws CryptoException
- Throws:
CryptoException
-
enc
public SecureProps enc(String key, int value) throws CryptoException
- Throws:
CryptoException
-
enc
public SecureProps enc(String key, long value) throws CryptoException
- Throws:
CryptoException
-
enc
public SecureProps enc(String key, float value) throws CryptoException
- Throws:
CryptoException
-
enc
public SecureProps enc(String key, double value) throws CryptoException
- Throws:
CryptoException
-
store
public void store(File file, String comments) throws IOException
- Throws:
IOException
-
store
public void store(String file, String comments) throws IOException
- Throws:
IOException
-
store
public void store(OutputStream os, String comments) throws IOException
- Overrides:
storein classProperties- Throws:
IOException
-
store
public void store(Writer w, String comments) throws IOException
- Overrides:
storein classProperties- Throws:
IOException
-
toProperties
protected Properties toProperties()
-
toString
public String toString()
- Overrides:
toStringin classProperties
-
copy
public SecureProps copy()
-
-