EcPublicKey

sealed class EcPublicKey : PublicKey

An EC Public Key.

Parameters

curve

the curve of the key.

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val curve: EcCurve
Link copied to clipboard

Functions

Link copied to clipboard
abstract override fun toCoseKey(additionalLabels: Map<CoseLabel, DataItem>): 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 override fun toJwk(additionalClaims: JsonObject?): JsonObject

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

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

Gets the Json Web Key Thumbprint.

Link copied to clipboard
open override fun toPem(): String

Encode this key in PEM format