MockKeyManagementService

A class which provides an implementation of KeyManagementService which is used in MockServices

Constructors

Link copied to clipboard
constructor(identityService: IdentityService, vararg initialKeys: KeyPair)

Properties

Link copied to clipboard

The IdentityService which contains the given identities.

Link copied to clipboard
open val keys: Set<PublicKey>

Functions

Link copied to clipboard
open fun filterMyKeys(candidateKeys: Iterable<PublicKey>): Iterable<PublicKey>
Link copied to clipboard
open fun freshKeyInternal(externalId: UUID?): PublicKey
Link copied to clipboard
open fun getSigner(publicKey: PublicKey): <Error class: unknown class>
Link copied to clipboard
open fun sign(bytes: ByteArray, publicKey: PublicKey): DigitalSignature.WithKey
open fun sign(signableData: SignableData, publicKey: PublicKey): TransactionSignature
Link copied to clipboard
open fun start(initialKeysAndAliases: Iterable<<Error class: unknown class><PublicKey, String>>)
Link copied to clipboard
open override fun toToken(context: SerializeAsTokenContext): <Error class: unknown class>