Class DFSPrivateKeyServiceImplRuntimeDelegatable
java.lang.Object
de.adorsys.datasafe.directory.impl.profile.keys.DFSPrivateKeyServiceImpl
de.adorsys.datasafe.directory.impl.profile.keys.DFSPrivateKeyServiceImplRuntimeDelegatable
- All Implemented Interfaces:
PrivateKeyService
@Generated(value="de.adorsys.datasafe.runtimedelegate.RuntimeDelegateGenerator",
comments="This class performs functionality delegation based on contextClass content. If contextClass contains overriding class - it will be used.")
public class DFSPrivateKeyServiceImplRuntimeDelegatable
extends DFSPrivateKeyServiceImpl
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionDFSPrivateKeyServiceImplRuntimeDelegatable(OverridesRegistry context, DocumentKeyStoreOperations keyStoreOper) -
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.static voidoverrideWith(OverridesRegistry context, Function<DFSPrivateKeyServiceImplRuntimeDelegatable.ArgumentsCaptor, DFSPrivateKeyServiceImpl> ctorCaptor) This is a typesafe function to register overriding class into context.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
-
DFSPrivateKeyServiceImplRuntimeDelegatable
@Inject public DFSPrivateKeyServiceImplRuntimeDelegatable(@Nullable OverridesRegistry context, DocumentKeyStoreOperations keyStoreOper) - Parameters:
context- Context class to search for overrides.
-
-
Method Details
-
pathEncryptionSecretKey
Description copied from class:DFSPrivateKeyServiceImplReads path encryption secret key from DFS and caches the result.- Specified by:
pathEncryptionSecretKeyin interfacePrivateKeyService- Overrides:
pathEncryptionSecretKeyin classDFSPrivateKeyServiceImpl
-
documentEncryptionSecretKey
Description copied from class:DFSPrivateKeyServiceImplReads document encryption secret key from DFS and caches the result.- Specified by:
documentEncryptionSecretKeyin interfacePrivateKeyService- Overrides:
documentEncryptionSecretKeyin classDFSPrivateKeyServiceImpl
-
validateUserHasAccessOrThrow
Description copied from class:DFSPrivateKeyServiceImplRead users' document access key to validate that he can open his keystore.- Specified by:
validateUserHasAccessOrThrowin interfacePrivateKeyService- Overrides:
validateUserHasAccessOrThrowin classDFSPrivateKeyServiceImpl
-
keysByIds
Description copied from class:DFSPrivateKeyServiceImplReads private or secret key from DFS and caches the keystore associated with it.- Specified by:
keysByIdsin interfacePrivateKeyService- Overrides:
keysByIdsin classDFSPrivateKeyServiceImpl
-
keyByPrefix
- Overrides:
keyByPrefixin classDFSPrivateKeyServiceImpl
-
keyByPrefix
protected SecretKeyIDWithKey keyByPrefix(UserIDAuth forUser, Collection<String> aliases, String prefix) - Overrides:
keyByPrefixin classDFSPrivateKeyServiceImpl
-
overrideWith
public static void overrideWith(OverridesRegistry context, Function<DFSPrivateKeyServiceImplRuntimeDelegatable.ArgumentsCaptor, DFSPrivateKeyServiceImpl> ctorCaptor) This is a typesafe function to register overriding class into context.
-