public class StorageKeyStoreOperationsImpl extends Object implements StorageKeyStoreOperations
| Constructor and Description |
|---|
StorageKeyStoreOperationsImpl(GsonSerde gson,
KeyStoreService keyStoreService,
GenericKeystoreOperations genericOper,
ProfileRetrievalService profile,
BucketAccessService access,
KeyStoreCache keystoreCache) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStorageCredentials(UserIDAuth forUser,
StorageIdentifier storageId,
StorageCredentials credentials) |
void |
createAndWriteKeystore(UserIDAuth forUser) |
StorageCredentials |
getStorageCredentials(UserIDAuth forUser,
StorageIdentifier id)
Tries to re-read keystore from storage if supplied password can't open cached keystore.
|
void |
invalidateCache(UserIDAuth forUser) |
protected KeyStore |
newKeystore(UserIDAuth forUser) |
Set<StorageIdentifier> |
readAliases(UserIDAuth forUser)
Reads aliases from keystore associated with user.
|
void |
removeStorageCredentials(UserIDAuth forUser,
StorageIdentifier storageId) |
void |
updateReadKeyPassword(UserIDAuth forUser,
ReadKeyPassword newPassword) |
@Inject public StorageKeyStoreOperationsImpl(GsonSerde gson, KeyStoreService keyStoreService, GenericKeystoreOperations genericOper, ProfileRetrievalService profile, BucketAccessService access, KeyStoreCache keystoreCache)
public StorageCredentials getStorageCredentials(UserIDAuth forUser, StorageIdentifier id)
getStorageCredentials in interface StorageKeyStoreOperationspublic Set<StorageIdentifier> readAliases(UserIDAuth forUser)
readAliases in interface StorageKeyStoreOperationspublic void updateReadKeyPassword(UserIDAuth forUser, ReadKeyPassword newPassword)
updateReadKeyPassword in interface StorageKeyStoreOperationspublic void createAndWriteKeystore(UserIDAuth forUser)
createAndWriteKeystore in interface StorageKeyStoreOperationspublic void addStorageCredentials(UserIDAuth forUser, StorageIdentifier storageId, StorageCredentials credentials)
addStorageCredentials in interface StorageKeyStoreOperationspublic void removeStorageCredentials(UserIDAuth forUser, StorageIdentifier storageId)
removeStorageCredentials in interface StorageKeyStoreOperationspublic void invalidateCache(UserIDAuth forUser)
invalidateCache in interface StorageKeyStoreOperationsprotected KeyStore newKeystore(UserIDAuth forUser)
Copyright © 2019. All rights reserved.