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, set
public String[] getList(String section, String subsection, String name)
SecureStore
null
when property was not found.getList
in class SecureStore
null
public String[] getListForPlugin(String pluginName, String section, String subsection, String name)
SecureStore
null
when property was not found.getListForPlugin
in class SecureStore
null
public void setList(String section, String subsection, String name, List<String> values)
SecureStore
This method is responsible for encrypting all values in the list and storing them.
setList
in class SecureStore
values
- list of plain text valuespublic void unset(String section, String subsection, String name)
SecureStore
section
, subsection
and name
from SecureStore.unset
in class SecureStore
public Iterable<SecureStore.EntryKey> list()
list
in class SecureStore
public boolean isOutdated()
isOutdated
in class SecureStore
true
if currently loaded values are outdatedpublic void reload()
SecureStore
reload
in class SecureStore