| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getValue(java.lang.String key)
Gets a stored value from the store.
|
static ProtectedFileStore |
open(java.nio.file.Path storePath)
Opens a verification store that loads from and persists to the given store file.
|
static ProtectedFileStore |
open(java.nio.file.Path storePath,
IProtectionService protectionService)
Opens a verification store that loads from and persists to the given store file.
|
static ProtectedFileStore |
open(java.nio.file.Path storePath,
ProtectionScope protectionScope)
Opens a verification store that loads from and persists to the given store file.
|
void |
persist()
Saves this store object to the store file.
|
void |
removeValue(java.lang.String key)
Removes a specific value from the store.
|
void |
setValue(java.lang.String key,
java.lang.String value)
Sets a value in the store.
|
public static ProtectedFileStore open(java.nio.file.Path storePath) throws ClientException
IProtectionService is to protect the store:
AesProtectionService with LinuxKeySourceProvider.DpApiProtectionService.storePath - The path to the store. If the path points to an existing directory, a file named 'client.store' will be created in there.ProtectedFileStore, with all values loaded.ClientException - If opening fails.public static ProtectedFileStore open(java.nio.file.Path storePath, ProtectionScope protectionScope) throws ClientException
IProtectionService is to protect the store:
AesProtectionService with LinuxKeySourceProvider.DpApiProtectionService.storePath - The path to the store. If the path points to an existing directory, a file named 'client.store' will be created in there.protectionScope - The ProtectionScope that is used to protect the data.ProtectedFileStore, with all values loaded.ClientException - If opening fails.public static ProtectedFileStore open(java.nio.file.Path storePath, IProtectionService protectionService) throws ClientException
storePath - The path to the store. If the path points to an existing directory, a file named 'client.store' will be created in there.protectionService - An implementation of IProtectionService that is used to protect the data before writing it to disk.ProtectedFileStore, with all values loaded.ClientException - If opening fails.public java.lang.String getValue(java.lang.String key)
public void setValue(java.lang.String key,
java.lang.String value)
public void removeValue(java.lang.String key)
removeValue in interface IStorekey - Unique key to identify the value. If null, the method call has no effect.public void persist()
throws ClientException
persist in interface IStoreClientException - client exception