X509Compatible

Keys that are (potentially) compatible with X509-certificate-based workflows.

Anonymous keys are compatible with X509 workflows if the identity of the key is clear from the context: one example is a newly-minted key for a self-signed certificate before the certificate is actually created.

Inheritors

Properties

Link copied to clipboard
abstract val algorithm: Algorithm

Signature algorithm

Link copied to clipboard
abstract val certChain: X509CertChain?

X509 certificate chain for the key, corresponds to x5c header value in JWT.

Link copied to clipboard
abstract val publicKey: EcPublicKey

Public key that corresponds to the private key used for signing

Link copied to clipboard
abstract val subject: String

Entity to which the key belongs; key id for named key, common name for the keys with the certificate chain.

Functions

Link copied to clipboard
abstract suspend fun keyAgreement(otherKey: EcPublicKey): ByteArray

Performs Key Agreement using this key and otherKey.

Link copied to clipboard
abstract suspend fun sign(message: ByteArray): EcSignature

Signs message with this key.