Class NodeKeyManagerImpl
java.lang.Object
org.gridgain.internal.security.key.NodeKeyManagerImpl
- All Implemented Interfaces:
org.apache.ignite.internal.lang.Debuggable,org.apache.ignite.internal.manager.IgniteComponent,NodeKeyManager
Implementation of
NodeKeyManager that generates RSA key pairs and stores them in PrivateKeyStore and
PublicKeyStore.-
Field Summary
Fields inherited from interface org.apache.ignite.internal.lang.Debuggable
INDENTATION -
Constructor Summary
ConstructorsConstructorDescriptionNodeKeyManagerImpl(String nodeName, PrivateKeyStore privateKeyStore, PublicKeyStore publicKeyStore, org.apache.ignite.internal.security.configuration.SecurityConfiguration securityConfiguration) Constructor.NodeKeyManagerImpl(String nodeName, PrivateKeyStore privateKeyStore, PublicKeyStore publicKeyStore, org.apache.ignite.internal.security.configuration.SecurityConfiguration securityConfiguration, Supplier<Instant> currentTimeSupplier, org.gridgain.internal.security.key.PublicKeyChainCache<RSAPublicKey> publicKeyChainCache, SecretGenerator<RSAPrivateKey, RSAPublicKey> secretGenerator) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns local private key.getPublicKey(String nodeName, int id) Returns public key for node at given time.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
-
NodeKeyManagerImpl
public NodeKeyManagerImpl(String nodeName, PrivateKeyStore privateKeyStore, PublicKeyStore publicKeyStore, org.apache.ignite.internal.security.configuration.SecurityConfiguration securityConfiguration) Constructor.- Parameters:
nodeName- the name of the node for which this manager is responsible.privateKeyStore- the store where the private key is to be stored.publicKeyStore- the store where the public key is to be stored.securityConfiguration- the configuration of the security component.
-
NodeKeyManagerImpl
@TestOnly public NodeKeyManagerImpl(String nodeName, PrivateKeyStore privateKeyStore, PublicKeyStore publicKeyStore, org.apache.ignite.internal.security.configuration.SecurityConfiguration securityConfiguration, Supplier<Instant> currentTimeSupplier, org.gridgain.internal.security.key.PublicKeyChainCache<RSAPublicKey> publicKeyChainCache, SecretGenerator<RSAPrivateKey, RSAPublicKey> secretGenerator) Constructor.- Parameters:
nodeName- the name of the node for which this manager is responsible.privateKeyStore- the store where the private key is to be stored.publicKeyStore- the store where the public key is to be stored.securityConfiguration- the configuration of the security component.currentTimeSupplier- the supplier of the current time.publicKeyChainCache- the cache of public key histories.secretGenerator- the generator of RSA key pairs.
-
-
Method Details
-
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
-
getPublicKey
Description copied from interface:NodeKeyManagerReturns public key for node at given time.- Specified by:
getPublicKeyin interfaceNodeKeyManager- Parameters:
nodeName- Node name.id- Key id.
-
getLocalPrivateKey
Description copied from interface:NodeKeyManagerReturns local private key.- Specified by:
getLocalPrivateKeyin interfaceNodeKeyManager- Returns:
- Local private key.
-
forceKeyRotation
-
keyRotationTask
-