PublicKey

data class PublicKey(val keyId: String, val publicKey: ByteArray, val algorithm: String = RSA, val symmetricAlgorithm: String = AES_256)

Encapsulates a public key used for asymmetric cryptographic operations.

Parameters

keyId

unique ID of the key.

publicKey

public key bytes.

algorithm

asymmetric cryptography algorithm associated with the key

symmetricAlgorithm

symmetric cryptography algorithm associated with symmetric key sealed by this public key.

Constructors

Link copied to clipboard
constructor(keyId: String, publicKey: ByteArray, algorithm: String = RSA, symmetricAlgorithm: String = AES_256)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun encode(): String

Encode the key as String.

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