public class DefaultSecureStore extends SecureStore
SecureStore.EntryKey| Modifier and Type | Method and Description |
|---|---|
String[] |
getList(String section,
String subsection,
String name)
Extract list of values from SecureStore and decrypt every value in that list or
null
when property was not found. |
String[] |
getListForPlugin(String pluginName,
String section,
String subsection,
String name)
Extract list of plugin config values from SecureStore and decrypt every value in that list, or
null when property was not found. |
boolean |
isOutdated() |
Iterable<SecureStore.EntryKey> |
list() |
void |
reload()
Reload the values
|
void |
setList(String section,
String subsection,
String name,
List<String> values)
Store list of values in SecureStore.
|
void |
unset(String section,
String subsection,
String name)
Remove value for given
section, subsection and name from SecureStore. |
get, getForPlugin, setpublic String[] getList(String section, String subsection, String name)
SecureStorenull
when property was not found.getList in class SecureStorenullpublic String[] getListForPlugin(String pluginName, String section, String subsection, String name)
SecureStorenull when property was not found.getListForPlugin in class SecureStorenullpublic void setList(String section, String subsection, String name, List<String> values)
SecureStoreThis method is responsible for encrypting all values in the list and storing them.
setList in class SecureStorevalues - list of plain text valuespublic void unset(String section, String subsection, String name)
SecureStoresection, subsection and name from SecureStore.unset in class SecureStorepublic Iterable<SecureStore.EntryKey> list()
list in class SecureStorepublic boolean isOutdated()
isOutdated in class SecureStoretrue if currently loaded values are outdatedpublic void reload()
SecureStorereload in class SecureStore