Package org.apache.ivy.util
Class EncryptedProperties
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Object,
Object>
- Direct Known Subclasses:
EncrytedProperties
An implementation of Properties which stores the values encrypted. The use is transparent from
the user point of view (use as any Properties instance), except that get, put and putAll do not
handle encryption/decryption. This means that get returns the encrypted value, while put and
putAll puts given values without encrypting them. It this thus recommended to void using them,
use setProperty and getProperty instead.
- See Also:
-
Field Summary
Fields inherited from class java.util.Properties
defaults
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
containsValue
(Object value) getProperty
(String key) getProperty
(String key, String defaultValue) setProperty
(String key, String value) values()
Methods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString
-
Constructor Details
-
EncryptedProperties
public EncryptedProperties()
-
-
Method Details
-
setProperty
- Overrides:
setProperty
in classProperties
-
getProperty
- Overrides:
getProperty
in classProperties
-
getProperty
- Overrides:
getProperty
in classProperties
-
containsValue
- Specified by:
containsValue
in interfaceMap<Object,
Object> - Overrides:
containsValue
in classProperties
-
contains
- Overrides:
contains
in classProperties
-
values
-