Structurevapor.jwt-kit 5.1.2JWTKit
JWTError
JWT error type.
struct JWTError
JWT error type.
struct JWTError
import JWTKit
🔑 JSON Web Token signing and verification (HMAC, RSA, PSS, ECDSA, EdDSA) using SwiftCrypto.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Error : Sendable
A type representing an error value that can be thrown.
protocol Escapable
protocol Sendable
static let missingKIDHeader: JWTError
static let missingX5CHeader: JWTError
static let noKeyProvided: JWTError
static let signatureVerificationFailed: JWTError
static func claimVerificationFailure(failedClaim: (any JWTClaim)?, reason: String) -> JWTError
static func generic(identifier: String, reason: String) -> JWTError
static func invalidBool(_ name: String) -> JWTError
static func invalidHeaderField(reason: String) -> JWTError
static func invalidJWK(reason: String) -> JWTError
static func invalidX5CChain(reason: String) -> JWTError
static func malformedToken(reason: String) -> JWTError
static func signingAlgorithmFailure(_ error: Error) -> JWTError
static func unknownKID(_ kid: JWKIdentifier) -> JWTError
static func unsupportedCurve(curve: any ECDSACurveType) -> JWTError
var curve: (any ECDSACurveType)? { get }
var description: String { get }
var errorType: ErrorType { get }
var failedClaim: (any JWTClaim)? { get }
var identifier: String? { get }
var kid: JWKIdentifier? { get }
var name: String? { get }
var reason: String? { get }
var underlying: (any Error)? { get }
static func == (lhs: JWTError, rhs: JWTError) -> Bool
struct ErrorType
var localizedDescription: String { get }
Retrieve the localized description for this error.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.