MockCryptoService

class MockCryptoService(initialKeyPairs: Map<String, KeyPair>)

Constructors

Link copied to clipboard
constructor(initialKeyPairs: Map<String, KeyPair>)

Functions

Link copied to clipboard
open fun containsKey(alias: String): Boolean
Link copied to clipboard
open fun createWrappingKey(alias: String, failIfExists: Boolean)
Link copied to clipboard
open fun generateKeyPair(alias: String, scheme: <Error class: unknown class>): PublicKey
Link copied to clipboard
open fun generateWrappedKeyPair(masterKeyAlias: String, childKeyScheme: <Error class: unknown class>): <Error class: unknown class><PublicKey, <Error class: unknown class>>
Link copied to clipboard
open fun getPublicKey(alias: String): PublicKey?
Link copied to clipboard
open fun getSigner(alias: String): <Error class: unknown class>
Link copied to clipboard
open fun getWrappingMode(): <Error class: unknown class>?
Link copied to clipboard
open fun sign(masterKeyAlias: String, wrappedPrivateKey: <Error class: unknown class>, payloadToSign: ByteArray): ByteArray
open fun sign(alias: String, data: ByteArray, signAlgorithm: String?): ByteArray