Class DFSPrivateKeyServiceImpl
java.lang.Object
de.adorsys.datasafe.directory.impl.profile.keys.DFSPrivateKeyServiceImpl
- All Implemented Interfaces:
PrivateKeyService
- Direct Known Subclasses:
DFSPrivateKeyServiceImplRuntimeDelegatable
Retrieves and opens private keystore associated with user location DFS storage.
Attempts to re-read keystore if not able to open it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondocumentEncryptionSecretKey(UserIDAuth forUser) Reads document encryption secret key from DFS and caches the result.protected SecretKeyIDWithKeykeyByPrefix(UserIDAuth forUser, String prefix) protected SecretKeyIDWithKeykeyByPrefix(UserIDAuth forUser, Collection<String> aliases, String prefix) keysByIds(UserIDAuth forUser, Set<String> keyIds) Reads private or secret key from DFS and caches the keystore associated with it.pathEncryptionSecretKey(UserIDAuth forUser) Reads path encryption secret key from DFS and caches the result.voidvalidateUserHasAccessOrThrow(UserIDAuth forUser) Read users' document access key to validate that he can open his keystore.
-
Constructor Details
-
DFSPrivateKeyServiceImpl
-
-
Method Details
-
pathEncryptionSecretKey
Reads path encryption secret key from DFS and caches the result.- Specified by:
pathEncryptionSecretKeyin interfacePrivateKeyService
-
documentEncryptionSecretKey
Reads document encryption secret key from DFS and caches the result.- Specified by:
documentEncryptionSecretKeyin interfacePrivateKeyService
-
validateUserHasAccessOrThrow
Read users' document access key to validate that he can open his keystore.- Specified by:
validateUserHasAccessOrThrowin interfacePrivateKeyService
-
keysByIds
Reads private or secret key from DFS and caches the keystore associated with it.- Specified by:
keysByIdsin interfacePrivateKeyService
-
keyByPrefix
-
keyByPrefix
protected SecretKeyIDWithKey keyByPrefix(UserIDAuth forUser, Collection<String> aliases, String prefix)
-