public class CryptoProperties extends Properties
Properties with crypto capabilities.Crypto,
Serialized Form| Modifier 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 |
put(Object key,
Object value) |
void |
putAll(Map<? extends Object,? extends Object> t) |
Object |
remove(Object key) |
getProperty, list, list, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNamesclear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, putIfAbsent, rehash, remove, replace, replace, replaceAll, size, toString, valuespublic CryptoProperties(Properties defaults)
defaults - public CryptoProperties()
public Crypto getCrypto()
public void load(Reader reader) throws IOException
load in class PropertiesIOExceptionpublic void load(InputStream inStream) throws IOException
load in class PropertiesIOExceptionpublic void loadFromXML(InputStream in) throws IOException, InvalidPropertiesFormatException
loadFromXML in class PropertiesIOExceptionInvalidPropertiesFormatExceptionpublic String getRawProperty(String key)
key - public String getRawProperty(String key, String defaultValue)
key - defaultValue - defaultValue if not foundProperties.setProperty(java.lang.String, java.lang.String)public String getProperty(String key)
getProperty in class Propertiespublic String getProperty(String key, boolean raw)
key - raw - if the encrypted values must be returned encrypted (raw==true) or decrypted (raw==false
)Copyright © 2019 Nuxeo SA. All rights reserved.