JWTRegisteredClaimsKey
public enum JWTRegisteredClaimsKey : String
The following Claim Names are registered in the IANA “JSON Web Token Claims” registry established by Section 10.1. None of the claims defined below are intended to be mandatory to use or implement in all cases, but rather they provide a starting point for a set of useful, interoperable claims.
-
The “iss” value is a case-sensitive string containing a StringOrURI value.
Declaration
Swift
case issuer = "iss" -
The “sub” value is a case-sensitive string containing a StringOrURI value.
Declaration
Swift
case subject = "sub" -
In the general case, the “aud” value is an array of case- sensitive strings, each containing a StringOrURI value. In the special case when the JWT has one audience, the “aud” value MAY be a single case-sensitive string containing a StringOrURI value.
Declaration
Swift
case audience = "aud" -
Its value MUST be a number containing a NumericDate value.
Declaration
Swift
case expirationTime = "exp" -
Its value MUST be a number containing a NumericDate value.
Declaration
Swift
case notBefore = "nbf" -
Its value MUST be a number containing a NumericDate value.
Declaration
Swift
case issuedAt = "iat" -
The “jti” value is a a unique identifier case-sensitive string.
Declaration
Swift
case jwtId = "jti"