Structure
JWK
A JSON Web Key.
struct JWK
Overview
Read specification (RFC 7517) https://tools.ietf.org/html/rfc7517.
Topics
Structures
JWK.AlgorithmSupportedalgalgorithmsJWK.CurveJWK.KeyTypeSupportedktykey types.
Initializers
init(from:)Creates a new instance by decoding from the given decoder.init(json:)
Instance Properties
algorithmThealg(algorithm) parameter identifies the algorithm intended for use with the key. Thealgvalue is a case-sensitive ASCII string.curveexponenteExponent.keyIdentifierThekid(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.keyTypeThekty(key type) parameter identifies the cryptographic algorithm family used with the key, such asRSAorECDSA. Thektyvalue is a case-sensitive string.modulusnModulus.prime1pFirst prime factor.prime2qSecond prime factor.privateExponentdPrivate exponent.xy
Type Methods
Relationships
Conforms To
Swift.DecodableSwift.EncodableSwift.SendableSwift.SendableMetatype