Class DataEncryptionKeyManagerImpl
java.lang.Object
org.gridgain.internal.encryption.storage.DataEncryptionKeyManagerImpl
- All Implemented Interfaces:
org.apache.ignite.internal.event.EventListener<org.gridgain.internal.encryption.event.EncryptionEventParameters>,org.apache.ignite.internal.lang.Debuggable,org.apache.ignite.internal.manager.IgniteComponent,org.gridgain.internal.encryption.DataEncryptionKeyManager
public class DataEncryptionKeyManagerImpl
extends Object
implements org.gridgain.internal.encryption.DataEncryptionKeyManager, org.apache.ignite.internal.event.EventListener<org.gridgain.internal.encryption.event.EncryptionEventParameters>
Serves for managing data encryption keys and related datastructure located in the heap.
-
Field Summary
Fields inherited from interface org.apache.ignite.internal.lang.Debuggable
INDENTATION -
Constructor Summary
ConstructorsConstructorDescriptionDataEncryptionKeyManagerImpl(KeyStorage storage, org.gridgain.internal.encryption.EncryptionManager encryptionManager, org.apache.ignite.internal.failure.FailureProcessor failureProcessor) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.gridgain.internal.encryption.provider.DataEncryptionKeyvoidvoidchangeActiveKey(String chainId, int keyId) booleancreateKeyChain(String chainId, org.gridgain.internal.encryption.provider.DataEncryptionKey key, @Nullable String providerName) org.gridgain.internal.encryption.provider.DataEncryptionKeybooleankeyChainExists(String chainId) notify(org.gridgain.internal.encryption.event.EncryptionEventParameters parameters) voidregisterRotationListener(org.gridgain.internal.encryption.DekRotationListener listener) voidvoidstartAsync(org.apache.ignite.internal.manager.ComponentContext componentContext) stopAsync(org.apache.ignite.internal.manager.ComponentContext componentContext) voidunregisterRotationListener(org.gridgain.internal.encryption.DekRotationListener listener) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.ignite.internal.lang.Debuggable
dumpStateMethods inherited from interface org.apache.ignite.internal.manager.IgniteComponent
beforeNodeStop, stopAsync
-
Constructor Details
-
DataEncryptionKeyManagerImpl
public DataEncryptionKeyManagerImpl(KeyStorage storage, org.gridgain.internal.encryption.EncryptionManager encryptionManager, org.apache.ignite.internal.failure.FailureProcessor failureProcessor) Constructor.- Parameters:
storage- Key chain storage.encryptionManager- Encryption manager.failureProcessor- Failure processor that is used to handle critical errors.
-
-
Method Details
-
activeKey
- Specified by:
activeKeyin interfaceorg.gridgain.internal.encryption.DataEncryptionKeyManager
-
getKey
public org.gridgain.internal.encryption.provider.DataEncryptionKey getKey(String chainId, int keyId) - Specified by:
getKeyin interfaceorg.gridgain.internal.encryption.DataEncryptionKeyManager
-
keyChainExists
- Specified by:
keyChainExistsin interfaceorg.gridgain.internal.encryption.DataEncryptionKeyManager
-
createKeyChain
public boolean createKeyChain(String chainId, org.gridgain.internal.encryption.provider.DataEncryptionKey key, @Nullable @Nullable String providerName) - Specified by:
createKeyChainin interfaceorg.gridgain.internal.encryption.DataEncryptionKeyManager
-
addKey
public void addKey(String chainId, org.gridgain.internal.encryption.provider.DataEncryptionKey newKey) - Specified by:
addKeyin interfaceorg.gridgain.internal.encryption.DataEncryptionKeyManager
-
changeActiveKey
- Specified by:
changeActiveKeyin interfaceorg.gridgain.internal.encryption.DataEncryptionKeyManager
-
remove
- Specified by:
removein interfaceorg.gridgain.internal.encryption.DataEncryptionKeyManager
-
rotateKey
- Specified by:
rotateKeyin interfaceorg.gridgain.internal.encryption.DataEncryptionKeyManager
-
registerRotationListener
public void registerRotationListener(org.gridgain.internal.encryption.DekRotationListener listener) - Specified by:
registerRotationListenerin interfaceorg.gridgain.internal.encryption.DataEncryptionKeyManager
-
unregisterRotationListener
public void unregisterRotationListener(org.gridgain.internal.encryption.DekRotationListener listener) - Specified by:
unregisterRotationListenerin interfaceorg.gridgain.internal.encryption.DataEncryptionKeyManager
-
startAsync
public CompletableFuture<Void> startAsync(org.apache.ignite.internal.manager.ComponentContext componentContext) - Specified by:
startAsyncin interfaceorg.apache.ignite.internal.manager.IgniteComponent
-
stopAsync
public CompletableFuture<Void> stopAsync(org.apache.ignite.internal.manager.ComponentContext componentContext) - Specified by:
stopAsyncin interfaceorg.apache.ignite.internal.manager.IgniteComponent
-
notify
public CompletableFuture<Boolean> notify(org.gridgain.internal.encryption.event.EncryptionEventParameters parameters) - Specified by:
notifyin interfaceorg.apache.ignite.internal.event.EventListener<org.gridgain.internal.encryption.event.EncryptionEventParameters>
-