class MockKeyManagementService : SingletonSerializeAsToken, KeyManagementService
<init> |
MockKeyManagementService(vararg initialKeys: KeyPair) |
keys |
val keys: MutableMap<PublicKey, PrivateKey> Returns a snapshot of the current pubkey->privkey mapping. |
nextKeys |
val nextKeys: LinkedList<KeyPair> |
freshKey |
fun freshKey(): KeyPair Generates a new random key and adds it to the exposed map. |
toKeyPair |
open fun toKeyPair(publicKey: PublicKey): KeyPair |
toPrivate |
open fun toPrivate(publicKey: PublicKey): PrivateKey |
toToken |
open fun toToken(context: SerializeAsTokenContext): SerializationToken |