class PersistentKeyManagementService : SingletonSerializeAsToken, KeyManagementServiceA persistent re-implementation of E2ETestKeyManagementService to support node re-start.
This is not the long-term implementation. See the list of items in the above class.
This class needs database transactions to be in-flight during method calls and init.
| <init> |
PersistentKeyManagementService(initialKeys: Set<KeyPair>)A persistent re-implementation of E2ETestKeyManagementService to support node re-start. |
| keys |
val keys: Map<PublicKey, PrivateKey>Returns a snapshot of the current pubkey->privkey mapping. |
| freshKey |
fun freshKey(): KeyPairGenerates a new random key and adds it to the exposed map. |
| toKeyPair |
open fun toKeyPair(publicKey: PublicKey): KeyPairopen fun toKeyPair(publicKeys: Iterable<PublicKey>): <ERROR CLASS>Returns the first KeyPair matching any of the publicKeys |
| toPrivate |
open fun toPrivate(publicKey: PublicKey): PrivateKey |
| toToken |
open fun toToken(context: SerializeAsTokenContext): SerializationToken |