EcPublicKeyOkp

data class EcPublicKeyOkp(val curve: EcCurve, val x: ByteArray) : EcPublicKey

EC Public Key with Octet Key Pairs.

Parameters

x

the X coordinate of the public key.

Constructors

Link copied to clipboard
constructor(curve: EcCurve, x: ByteArray)

Properties

Link copied to clipboard
open override val curve: EcCurve
Link copied to clipboard
val EcPublicKey.javaPublicKey: <Error class: unknown class>
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toCoseKey(additionalLabels: Map<CoseLabel, DataItem>): CoseKey

Creates a CoseKey object for the key.

Link copied to clipboard
Link copied to clipboard
open override fun toJwk(additionalClaims: JsonObject?): JsonObject

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

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

Gets the Json Web Key Thumbprint.

Link copied to clipboard
fun toPem(): String

Encode this key in PEM format