Class EncryptionConfigurationVault

java.lang.Object
org.gridgain.internal.encryption.EncryptionConfigurationVault
All Implemented Interfaces:
org.apache.ignite.internal.lang.Debuggable, org.apache.ignite.internal.manager.IgniteComponent

public class EncryptionConfigurationVault extends Object implements org.apache.ignite.internal.manager.IgniteComponent
Extension to the EncryptionManagerImpl that stores the encryption configuration in the vault. This class is able to reconfigure the EncryptionManager without access to the cluster configurations.
  • Field Summary

    Fields inherited from interface org.apache.ignite.internal.lang.Debuggable

    INDENTATION
  • Constructor Summary

    Constructors
    Constructor
    Description
    EncryptionConfigurationVault(EncryptionManagerImpl encryptionManager, org.apache.ignite.internal.vault.VaultManager vaultManager, Supplier<org.apache.ignite.internal.configuration.SuperRoot> clusterCfgSuperRootFactory, org.apache.ignite.internal.cluster.management.ClusterManagementGroupManager cmgMgr, org.apache.ignite.internal.manager.IgniteComponent logStorageFactory, Executor ioExecutor, org.gridgain.internal.encryption.configuration.EncryptionConfiguration encryptionConfiguration)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Saves the current encryption configuration to the persistent storage.
    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, wait

    Methods inherited from interface org.apache.ignite.internal.lang.Debuggable

    dumpState

    Methods inherited from interface org.apache.ignite.internal.manager.IgniteComponent

    beforeNodeStop, stopAsync
  • Constructor Details

    • EncryptionConfigurationVault

      public EncryptionConfigurationVault(EncryptionManagerImpl encryptionManager, org.apache.ignite.internal.vault.VaultManager vaultManager, Supplier<org.apache.ignite.internal.configuration.SuperRoot> clusterCfgSuperRootFactory, org.apache.ignite.internal.cluster.management.ClusterManagementGroupManager cmgMgr, org.apache.ignite.internal.manager.IgniteComponent logStorageFactory, Executor ioExecutor, org.gridgain.internal.encryption.configuration.EncryptionConfiguration encryptionConfiguration)
      Constructor.
      Parameters:
      encryptionManager - The underlying EncryptionManager instance.
      vaultManager - The underlying VaultManager instance.
      clusterCfgSuperRootFactory - A factory for Configuration Root nodes used to reconstruct the EncryptionConfiguration from the raw initial cluster configuration string.
      cmgMgr - Reference to the ClusterManagementGroupManager to register the listeners during startup.
      logStorageFactory - Reference to the default LogStorageFactory whose lifecycle is controlled by this class.
      ioExecutor - Executor in which file I/O may be performed.
      encryptionConfiguration - Encryption configuration.
  • Method Details

    • saveCurrentEncryptionConfig

      public void saveCurrentEncryptionConfig()
      Saves the current encryption configuration to the persistent storage.
    • startAsync

      public CompletableFuture<Void> startAsync(org.apache.ignite.internal.manager.ComponentContext componentContext)
      Specified by:
      startAsync in interface org.apache.ignite.internal.manager.IgniteComponent
    • stopAsync

      public CompletableFuture<Void> stopAsync(org.apache.ignite.internal.manager.ComponentContext componentContext)
      Specified by:
      stopAsync in interface org.apache.ignite.internal.manager.IgniteComponent