Class DefaultSecureStore
java.lang.Object
com.google.gerrit.server.securestore.SecureStore
com.google.gerrit.server.securestore.DefaultSecureStore
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gerrit.server.securestore.SecureStore
SecureStore.EntryKey
-
Method Summary
Modifier and TypeMethodDescriptionString[]
Extract list of values from SecureStore and decrypt every value in that list ornull
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, ornull
when property was not found.boolean
Returnstrue
if currently loaded values are outdatedlist()
Returns list of stored entries.void
reload()
Reload the valuesvoid
Store list of values in SecureStore.void
Remove value for givensection
,subsection
andname
from SecureStore.Methods inherited from class com.google.gerrit.server.securestore.SecureStore
get, getForPlugin, set
-
Method Details
-
getList
Description copied from class:SecureStore
Extract list of values from SecureStore and decrypt every value in that list ornull
when property was not found.- Specified by:
getList
in classSecureStore
- Returns:
- decrypted list of string values or
null
-
getListForPlugin
Description copied from class:SecureStore
Extract list of plugin config values from SecureStore and decrypt every value in that list, ornull
when property was not found.- Specified by:
getListForPlugin
in classSecureStore
- Returns:
- decrypted list of string values or
null
-
setList
Description copied from class:SecureStore
Store list of values in SecureStore.This method is responsible for encrypting all values in the list and storing them.
- Specified by:
setList
in classSecureStore
values
- list of plain text values
-
unset
Description copied from class:SecureStore
Remove value for givensection
,subsection
andname
from SecureStore.- Specified by:
unset
in classSecureStore
-
list
Description copied from class:SecureStore
Returns list of stored entries.- Specified by:
list
in classSecureStore
-
isOutdated
public boolean isOutdated()Description copied from class:SecureStore
Returnstrue
if currently loaded values are outdated- Specified by:
isOutdated
in classSecureStore
-
reload
public void reload()Description copied from class:SecureStore
Reload the values- Specified by:
reload
in classSecureStore
-