Rsa

data class Rsa(val n: String, val e: String, val d: String? = null, val p: String? = null, val q: String? = null, val dp: String? = null, val dq: String? = null, val qi: String? = null, val use: String? = null, val keyOps: List<String>? = null, val alg: String? = null, val kid: String? = null) : Jwk(source)

RSA key (kty = "RSA"). Public key requires n and e. Private key additionally requires d; CRT parameters p, q, dp, dq, qi are optional but required for key conversion to cryptography-kotlin types.

Constructors

Link copied to clipboard
constructor(n: String, e: String, d: String? = null, p: String? = null, q: String? = null, dp: String? = null, dq: String? = null, qi: String? = null, use: String? = null, keyOps: List<String>? = null, alg: String? = null, kid: String? = null)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Thumbprint computed from the RSA key parameters e (public exponent) and n (modulus).

Properties

Link copied to clipboard
open override val alg: String?

The alg parameter (RFC 7517 §4.4); identifies the algorithm intended for use with this key.

Link copied to clipboard
val d: String?
Link copied to clipboard
val dp: String?
Link copied to clipboard
val dq: String?
Link copied to clipboard
val e: String
Link copied to clipboard
open override val isPrivate: Boolean

Whether this JWK contains private key material.

Link copied to clipboard
open override val keyOps: List<String>?

The key_ops parameter (RFC 7517 §4.3); lists the operations for which this key is intended to be used.

Link copied to clipboard
open override val kid: String?

The kid parameter (RFC 7517 §4.5); a hint used to identify a specific key within a key set.

Link copied to clipboard
val n: String
Link copied to clipboard
val p: String?
Link copied to clipboard
val q: String?
Link copied to clipboard
val qi: String?
Link copied to clipboard
open override val thumbprint: Jwk.Thumbprint

The JWK Thumbprint for this key as defined by RFC 7638.

Link copied to clipboard
open override val use: String?

The use parameter (RFC 7517 §4.2); indicates the intended use of the public key ("sig" for signature or "enc" for encryption).