ValidateClaimsResult
public struct ValidateClaimsResult : CustomStringConvertible, Equatable
ValidateClaimsResult list the possible results of a call to JWT.validateClaims method. In case of successful validation, .success is returned, all other cases list various problems that may occur during claims validation and indicate that the validation failed.
-
The human readable description of the ValidateClaimsResult
Declaration
Swift
public let description: String
-
Successful validation.
Declaration
Swift
public static let success: ValidateClaimsResult
-
Invalid Expiration claim.
Declaration
Swift
public static let invalidExpiration: ValidateClaimsResult
-
Expired token: expiration time claim is in the past.
Declaration
Swift
public static let expired: ValidateClaimsResult
-
Invalid Not Before claim.
Declaration
Swift
public static let invalidNotBefore: ValidateClaimsResult
-
Not Before claim is in the future.
Declaration
Swift
public static let notBefore: ValidateClaimsResult
-
Invalid Issued At claim.
Declaration
Swift
public static let invalidIssuedAt: ValidateClaimsResult
-
Issued At claim is in the future.
Declaration
Swift
public static let issuedAt: ValidateClaimsResult
-
Check if two ValidateClaimsResults are equal. Required for the Equatable protocol
Declaration
Swift
public static func == (lhs: ValidateClaimsResult, rhs: ValidateClaimsResult) -> Bool