EcPrivateKey

sealed class EcPrivateKey

An EC private key.

Parameters

curve

the curve of the key.

d

the private value of the key.

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val curve: EcCurve
Link copied to clipboard
open val d: ByteArray
Link copied to clipboard
val EcPrivateKey.javaPrivateKey: <Error class: unknown class>
Link copied to clipboard
abstract val publicKey: EcPublicKey

The public part of the 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
Link copied to clipboard
abstract fun toJwk(additionalClaims: JsonObject? = null): JsonObject

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

Link copied to clipboard
fun toPem(): String

Encode this key in PEM format