Structure
JWTHeader
The header (details) used for signing and processing the JWT.
@dynamicMemberLookup struct JWTHeader
Topics
Initializers
Instance Properties
var alg: String?Thealg(Algorithm) Header Parameter identifies the cryptographic algorithm used to secure the JWT. Common values includeHS256,RS256, etc.var crit: [String]?Thecrit(Critical) Header Parameter indicates that extensions to standard JWT specifications are being used and must be understood and processed.var cty: String?Thecty(Content Type) Header Parameter is used to declare the media type of the payload when the JWT is nested (e.g., encrypted JWT inside a JWT).var fields: [String : JWTHeaderField]var jku: String?Thejku(JWK Set URL) Header Parameter is a URI that refers to a resource for a set of JSON-encoded public keys, one of which corresponds to the key used to digitally sign the JWT.var jwk: [String : JWTHeaderField]?Thejwk(JSON Web Key) Header Parameter is a JSON object that represents a cryptographic key. This parameter is used to transmit a key to be used in securing the JWT.var kid: String?Thekid(Key ID) Header Parameter is a hint indicating which key was used to secure the JWT. This parameter allows originators to explicitly signal a change of key to recipients.var typ: String?Thetyp(Type) Header Parameter is used to declare the media type of the JWT. While optional, it’s typically set toJWT.var x5c: [String]?Thex5c(X.509 Certificate Chain) Header Parameter contains a chain of one or more PKIX certificates. Each string in the array is a base64-encoded (Section 4 of [RFC4648] - not base64url-encoded) DER [ITU.X690.1994] PKIX certificate value.var x5t: String?Thex5t(X.509 Certificate SHA-1 Thumbprint) Header Parameter is a base64url-encoded SHA-1 thumbprint (a.k.a. digest) of the DER encoding of the X.509 certificate [RFC5280].var x5tS256: String?Thex5t#S256(X.509 Certificate SHA-256 Thumbprint) Header Parameter is a base64url-encoded SHA-256 thumbprint of the DER encoding of the X.509 certificate [RFC5280].var x5u: String?Thex5u(X.509 URL) Header Parameter is a URI that refers to a resource for the X.509 public key certificate or certificate chain corresponding to the key used to digitally sign the JWT.
Instance Methods
Subscripts
Default Implementations
Relationships
Conforms To
Swift.CopyableSwift.DecodableSwift.EncodableSwift.EscapableSwift.ExpressibleByDictionaryLiteralSwift.SendableSwift.SendableMetatype