public class CryptoProperties extends Properties
Properties
with crypto capabilities.Crypto
,
Serialized FormModifier and Type | Class and Description |
---|---|
protected class |
CryptoProperties.PropertiesGetDefaults |
defaults
Constructor and Description |
---|
CryptoProperties() |
CryptoProperties(Properties defaults)
|
Modifier and Type | Method and Description |
---|---|
Crypto |
getCrypto() |
String |
getProperty(String key) |
String |
getProperty(String key,
boolean raw) |
String |
getRawProperty(String key) |
String |
getRawProperty(String key,
String defaultValue)
Searches for the property with the specified key in this property list.
|
void |
load(InputStream inStream) |
void |
load(Reader reader) |
void |
loadFromXML(InputStream in) |
Object |
merge(Object key,
Object value,
BiFunction<? super Object,? super Object,? extends Object> remappingFunction) |
Object |
put(Object key,
Object value) |
void |
putAll(Map<? extends Object,? extends Object> t) |
Object |
putIfAbsent(Object key,
Object value) |
Object |
remove(Object key) |
boolean |
remove(Object key,
Object value) |
Object |
replace(Object key,
Object value) |
boolean |
replace(Object key,
Object oldValue,
Object newValue) |
getProperty, list, list, 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, rehash, replaceAll, size, toString, values
public CryptoProperties(Properties defaults)
public CryptoProperties()
public void load(Reader reader) throws IOException
load
in class Properties
IOException
public void load(InputStream inStream) throws IOException
load
in class Properties
IOException
public void loadFromXML(InputStream in) throws IOException, InvalidPropertiesFormatException
loadFromXML
in class Properties
IOException
InvalidPropertiesFormatException
public Object putIfAbsent(Object key, Object value)
putIfAbsent
in interface Map<Object,Object>
putIfAbsent
in class Hashtable<Object,Object>
public Object merge(Object key, Object value, BiFunction<? super Object,? super Object,? extends Object> remappingFunction)
public String getRawProperty(String key)
public String getRawProperty(String key, String defaultValue)
defaultValue
if not foundProperties.setProperty(java.lang.String, java.lang.String)
public String getProperty(String key)
getProperty
in class Properties
public String getProperty(String key, boolean raw)
raw
- if the encrypted values must be returned encrypted (raw==true
) or decrypted (
raw==false
)Copyright © 2018 Nuxeo. All rights reserved.