Class GenericKeystoreOperations
java.lang.Object
de.adorsys.datasafe.directory.impl.profile.keys.GenericKeystoreOperations
- Direct Known Subclasses:
GenericKeystoreOperationsRuntimeDelegatable
Common operations that are done with keystore.
-
Constructor Summary
ConstructorsConstructorDescriptionGenericKeystoreOperations(KeyCreationConfig config, DFSConfig dfsConfig, StorageWriteService writeService, StorageReadService readService, KeyStoreCache keystoreCache, KeyStoreService keyStoreService) -
Method Summary
Modifier and TypeMethodDescriptiongetKey(Supplier<KeyStore> keystore, UserIDAuth forUser, String alias) Tries to re-read keystore from storage if supplied password can't open cached keystore.keystoreAuth(UserIDAuth forUser) readAliases(KeyStore keystore) Reads aliases from keystore associated with user.readKeyStore(UserIDAuth forUser, AbsoluteLocation location) voidupdateReadKeyPassword(KeyStore keystore, AbsoluteLocation location, UserIDAuth forUser, ReadKeyPassword newPassword) voidwriteKeystore(UserID forUser, KeyStoreAuth auth, AbsoluteLocation locationWithAccess, KeyStore keystoreBlob)
-
Constructor Details
-
GenericKeystoreOperations
@Inject public GenericKeystoreOperations(KeyCreationConfig config, DFSConfig dfsConfig, StorageWriteService writeService, StorageReadService readService, KeyStoreCache keystoreCache, KeyStoreService keyStoreService)
-
-
Method Details
-
createEmptyKeystore
-
getKey
Tries to re-read keystore from storage if supplied password can't open cached keystore. Clears all keystore caches if reading operation fails. -
readAliases
Reads aliases from keystore associated with user. -
updateReadKeyPassword
public void updateReadKeyPassword(KeyStore keystore, AbsoluteLocation location, UserIDAuth forUser, ReadKeyPassword newPassword) -
readKeyStore
-
keystoreAuth
-
writeKeystore
public void writeKeystore(UserID forUser, KeyStoreAuth auth, AbsoluteLocation locationWithAccess, KeyStore keystoreBlob)
-