Oct

data class Oct(val k: String, val use: String? = null, val keyOps: List<String>? = null, val alg: String? = null, val kid: String? = null) : Jwk(source)

Symmetric (octet sequence) key (kty = "oct"). The k parameter holds the raw key bytes encoded as base64url. Always considered private key material.

Constructors

Link copied to clipboard
constructor(k: String, 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 symmetric key material k (the raw key bytes encoded as base64url).

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
open override val isPrivate: Boolean

Whether this JWK contains private key material.

Link copied to clipboard
val k: String
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
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).