Instance Propertyvapor.jwt-kit 5.1.2JWTKit
prime2
q
Second prime factor.
var prime2: String?
q
Second prime factor.
var prime2: String?
import JWTKit
🔑 JSON Web Token signing and verification (HMAC, RSA, PSS, ECDSA, EdDSA) using SwiftCrypto.
struct JWK
A JSON Web Key.
@frozen struct String
A Unicode string value that is a collection of characters.
init(from decoder: any Decoder) throws
init(json: String) throws
static func ecdsa(_ algorithm: Algorithm?, identifier: JWKIdentifier?, x: String?, y: String?, curve: ECDSACurve?, privateKey: String? = nil) -> JWK
static func octetKeyPair(_ algorithm: Algorithm?, identifier: JWKIdentifier?, x: String?, y _: String?, curve: EdDSACurve?, privateKey: String? = nil) -> JWK
static func rsa(_ algorithm: Algorithm?, identifier: JWKIdentifier?, modulus: String?, exponent: String?, privateExponent: String? = nil) -> JWK
var algorithm: Algorithm?
The alg
(algorithm) parameter identifies the algorithm intended for use with the key. The alg
value is a case-sensitive ASCII string.
var curve: Curve?
var exponent: String?
e
Exponent.
var keyIdentifier: JWKIdentifier?
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.
var keyType: 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.
var modulus: String?
n
Modulus.
var prime1: String?
p
First prime factor.
var privateExponent: String?
d
Private exponent.
var x: String?
var y: String?
struct Algorithm
Supported alg
algorithms
struct Curve
struct KeyType
Supported kty
key types.