Structure
X5CValidationTime
The point in time at which an
X5CVerifier validates the x5c certificate chain of a JWS.struct X5CValidationTime
Overview
Use currentTime unless you need to accept tokens signed in the past, and prefer signedDate(maxAge:) to bound how far back validation can be moved.
Topics
Type Properties
static let currentTime: X5CValidationTimeValidate the certificate chain against the current time, ignoring anysignedDatein the payload.static let signedDate: X5CValidationTimeValidate the certificate chain against the payload’ssignedDateif the payload conforms toValidationTimePayload, falling back to the current time otherwise.
Type Methods
static func fixed(Date) -> X5CValidationTimeValidate the certificate chain against a fixed, caller-provided date.static func signedDate(maxAge: TimeInterval) -> X5CValidationTimeLikesignedDate, but rejects tokens whosesignedDatelies more thanmaxAgeseconds in the past, limiting how far an attacker can backdate certificate validation.
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype