Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val curve: EcCurve?

The EcCurve for this key if it is an elliptic curve key, or null if not an EC key.

Functions

Link copied to clipboard
abstract fun toCoseKey(additionalLabels: Map<CoseLabel, DataItem> = emptyMap()): CoseKey

Creates a CoseKey object for the key.

Link copied to clipboard

Serializes this public key as a CBOR DataItem encoding a COSE_Key.

Link copied to clipboard
Link copied to clipboard
abstract suspend fun toJwk(additionalClaims: JsonObject? = null): JsonObject

Encodes the public key as a JSON Web Key according to RFC 7517.

Link copied to clipboard
abstract suspend fun toJwkThumbprint(digestAlgorithm: Algorithm): ByteString

Gets the Json Web Key Thumbprint.

Link copied to clipboard
abstract fun toPem(): String

Encode this key in PEM format.