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,DataEncryptionKeyManager
public class DataEncryptionKeyManagerImpl
extends Object
implements DataEncryptionKeyManager, org.apache.ignite.internal.manager.IgniteComponent, 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.DataEncryptionKeyReturns active key for provided chain identifier.voidAdds new data encryption key to chain with provided identifier.voidchangeActiveKey(String chainId, int keyId) Changes active data encryption key to key with provided identifier in key chain.booleancreateKeyChain(String chainId, org.gridgain.internal.encryption.provider.DataEncryptionKey key, @Nullable String providerName) Creates new key chain with provided identifier and store key as active.org.gridgain.internal.encryption.provider.DataEncryptionKeyReturns key with provided key identifier from chain with provided identifier.booleankeyChainExists(String chainId) Returns true if chain with provided identifier exists or false if not.notify(org.gridgain.internal.encryption.event.EncryptionEventParameters parameters) voidRemoves key chain.startAsync(org.apache.ignite.internal.manager.ComponentContext componentContext) stopAsync(org.apache.ignite.internal.manager.ComponentContext componentContext) 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
Description copied from interface:DataEncryptionKeyManagerReturns active key for provided chain identifier.- Specified by:
activeKeyin interfaceDataEncryptionKeyManager- Parameters:
chainId- Chain identifier.
-
getKey
public org.gridgain.internal.encryption.provider.DataEncryptionKey getKey(String chainId, int keyId) Description copied from interface:DataEncryptionKeyManagerReturns key with provided key identifier from chain with provided identifier.- Specified by:
getKeyin interfaceDataEncryptionKeyManager- Parameters:
chainId- Chain identifier.keyId- Key identifier.
-
keyChainExists
Description copied from interface:DataEncryptionKeyManagerReturns true if chain with provided identifier exists or false if not.- Specified by:
keyChainExistsin interfaceDataEncryptionKeyManager- Parameters:
chainId- Chain identifier.
-
createKeyChain
public boolean createKeyChain(String chainId, org.gridgain.internal.encryption.provider.DataEncryptionKey key, @Nullable @Nullable String providerName) Description copied from interface:DataEncryptionKeyManagerCreates new key chain with provided identifier and store key as active. Provider name using to encrypt.- Specified by:
createKeyChainin interfaceDataEncryptionKeyManager- Parameters:
chainId- Key chain identifier.key- Data encryption key.providerName- Encryption provider name.- Returns:
trueif key chain is created andfalsein case when chain withchainIdalready exists.
-
addKey
public void addKey(String chainId, org.gridgain.internal.encryption.provider.DataEncryptionKey newKey) Description copied from interface:DataEncryptionKeyManagerAdds new data encryption key to chain with provided identifier.- Specified by:
addKeyin interfaceDataEncryptionKeyManager- Parameters:
chainId- Chain identifier.newKey- Data encryption key.
-
changeActiveKey
Description copied from interface:DataEncryptionKeyManagerChanges active data encryption key to key with provided identifier in key chain.- Specified by:
changeActiveKeyin interfaceDataEncryptionKeyManager- Parameters:
chainId- Chain identifier.keyId- Key identifier.
-
remove
Description copied from interface:DataEncryptionKeyManagerRemoves key chain.- Specified by:
removein interfaceDataEncryptionKeyManager- Parameters:
chainId- Chain identifier.
-
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>
-