MockKeyManagementService

class MockKeyManagementService(val identityService: <Error class: unknown class>, initialKeys: KeyPair, val meteringRecorder: <Error class: unknown class> = MeteringRecorderFactory().stubbed())

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

Constructors

Link copied to clipboard
constructor(identityService: <Error class: unknown class>, vararg initialKeys: KeyPair, meteringRecorder: <Error class: unknown class> = MeteringRecorderFactory().stubbed())

Properties

Link copied to clipboard
open val identityService: <Error class: unknown class>

The IdentityService which contains the given identities.

Link copied to clipboard
open val keys: Set<PublicKey>
Link copied to clipboard
open val meteringRecorder: <Error class: unknown class>

Functions

Link copied to clipboard
open fun filterMyKeys(candidateKeys: Iterable<PublicKey>): Iterable<PublicKey>
Link copied to clipboard
open fun freshKeyInternal(externalId: UUID?, keyType: <Error class: unknown class>): PublicKey
Link copied to clipboard
open fun getPreGeneratedKeyAndCert(identity: <Error class: unknown class>, revocationEnabled: Boolean, externalId: UUID?): <Error class: unknown class>
Link copied to clipboard
open fun getSigner(publicKey: PublicKey): <Error class: unknown class>
Link copied to clipboard
open fun preGenerateFreshKeyInternal(externalId: UUID?, cryptoConfigHash: String?, generateTm: Instant, keyType: <Error class: unknown class>, status: <Error class: unknown class>): PublicKey
Link copied to clipboard
open fun sign(signableData: <Error class: unknown class>, publicKey: PublicKey): <Error class: unknown class>
open fun sign(bytes: ByteArray, publicKey: PublicKey): <Error class: unknown class>
Link copied to clipboard
open fun start(initialKeysAndAliases: Iterable<<Error class: unknown class><PublicKey, String>>)