PublicKey

abstract class PublicKey : Key(source)

Abstraction of what a PublicKey is and the functionality it provides.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
abstract val raw: ByteArray
Link copied to clipboard
abstract val size: Int
Link copied to clipboard
abstract val type: KeyTypes

Functions

Link copied to clipboard

Evaluates if this key implements VerifiableKey

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Checks if the current Key object is equal to the provided object. Two Key objects are considered equal if the following conditions are met:

Link copied to clipboard

Returns the value of the key curve for this private key

Link copied to clipboard

Returns an instance of the key curve for this private key

Link copied to clipboard

Returns the encoded raw value into base 64 url

Link copied to clipboard

Searches the value based on the input key, if it exists

Link copied to clipboard

Returns the value of this private key

Link copied to clipboard
open override fun hashCode(): Int

Computes the hash code of the Key object. The hash code is calculated based on the properties of the keySpecification map and the raw byte array. Two Key objects with the same keySpecification map and the raw byte array are guaranteed to have the same hash code.

Link copied to clipboard
fun isCurve(curve: String): Boolean

Evaluates if the input curve matches the actual curve this key has

Link copied to clipboard

Evaluates if this key implements DerivableKey

Link copied to clipboard

Evaluates if this key implements ExportableKey

Link copied to clipboard

Evaluates if this key implements ImportableKey

Link copied to clipboard

Evaluates if this key implements SignableKey

Link copied to clipboard
abstract fun jca(): <Error class: unknown class>