Skip to content

Structure

JWK

A JSON Web Key.
struct JWK

Overview

Read specification (RFC 7517) https://tools.ietf.org/html/rfc7517.

Topics

Structures

Initializers

Instance Properties

  • algorithm
    The alg (algorithm) parameter identifies the algorithm intended for use with the key. The alg value is a case-sensitive ASCII string.
  • curve
  • exponent
    e Exponent.
  • keyIdentifier
    The kid (key ID) parameter is used to match a specific key. This is used, for instance, to choose among a set of keys within a JWK Set during key rollover.
  • keyType
    The kty (key type) parameter identifies the cryptographic algorithm family used with the key, such as RSA or ECDSA. The kty value is a case-sensitive string.
  • modulus
    n Modulus.
  • prime1
    p First prime factor.
  • prime2
    q Second prime factor.
  • privateExponent
    d Private exponent.
  • x
  • y

Type Methods

Relationships

Conforms To

  • Swift.Decodable
  • Swift.Encodable
  • Swift.Sendable
  • Swift.SendableMetatype