public interface StorageKeyStoreOperations
| Modifier and Type | Method and Description |
|---|---|
void |
addStorageCredentials(UserIDAuth forUser,
StorageIdentifier storageId,
StorageCredentials credentials)
Stores storage access keys in keystore.
|
void |
createAndWriteKeystore(UserIDAuth forUser)
Creates storage that stores access keys in keystore.
|
StorageCredentials |
getStorageCredentials(UserIDAuth forUser,
StorageIdentifier storageId)
Read key from the keystore associated with user.
|
void |
invalidateCache(UserIDAuth forUser)
Attempts to invalidate keystore cache to re-read keystore directly from storage
|
Set<StorageIdentifier> |
readAliases(UserIDAuth forUser)
Aliases of keys stored in keystore associated with user.
|
void |
removeStorageCredentials(UserIDAuth forUser,
StorageIdentifier storageId)
Removes storage access keys from keystore.
|
void |
updateReadKeyPassword(UserIDAuth forUser,
ReadKeyPassword newPassword)
Updates ReadKeyPassword for users' keystore.
|
void updateReadKeyPassword(UserIDAuth forUser, ReadKeyPassword newPassword)
forUser - Keystore owner.newPassword - New ReadKeyStore password.void createAndWriteKeystore(UserIDAuth forUser)
forUser - Owner of this keyvoid addStorageCredentials(UserIDAuth forUser, StorageIdentifier storageId, StorageCredentials credentials)
forUser - Owner of this keystorageId - Storage identifiercredentials - Key to store in keystorevoid removeStorageCredentials(UserIDAuth forUser, StorageIdentifier storageId)
forUser - Owner of this keystorageId - Storage identifiervoid invalidateCache(UserIDAuth forUser)
forUser - Keystore ownerStorageCredentials getStorageCredentials(UserIDAuth forUser, StorageIdentifier storageId)
forUser - keystore ownerstorageId - Storage identifier to read credentials forSet<StorageIdentifier> readAliases(UserIDAuth forUser)
forUser - keystore owner.Copyright © 2019. All rights reserved.