PublishedKeyMaterial

Key material referenced by a key id in identifier, which can be fetched by clients from keySetUrl.

Inheritors

Properties

Link copied to clipboard
abstract val identifier: String
Link copied to clipboard
open override val jsonWebKey: JsonWebKey
Link copied to clipboard
abstract val keySetUrl: String?

Can be used by clients to look up this key in a at.asitplus.signum.indispensable.josef.JsonWebKeySet.

Link copied to clipboard
Link copied to clipboard
abstract val publicKey: CryptoPublicKey
Link copied to clipboard
abstract val signatureAlgorithm: SignatureAlgorithm

Functions

Link copied to clipboard
abstract fun exportPrivateKey(): KmmResult<CryptoPrivateKey.WithPublicKey<*>>
Link copied to clipboard
abstract suspend fun getCertificate(): X509Certificate?

May be used to transport the signing key for a COSE structure. a null value signifies that raw public keys are used and no certificate is present

Link copied to clipboard
abstract fun getUnderLyingSigner(): Signer
Link copied to clipboard
abstract suspend fun sign(data: SignatureInput): SignatureResult<*>
open suspend fun sign(data: ByteArray): SignatureResult<*>
open suspend fun sign(data: Sequence<ByteArray>): SignatureResult<*>
Link copied to clipboard
open suspend fun trySetupUninterruptedSigning(): KmmResult<Unit>