Structureswift-certificates 1.13.0X509
OCSPVerifierPolicy
OCSPPolicy.swift:187- iOS
- 13+
- macOS
- 10.15+
- Mac Catalyst
- 13+
- tvOS
- 13+
- visionOS
- 1.0+
- watchOS
- 6+
struct OCSPVerifierPolicy<Requester> where Requester : OCSPRequesterstruct OCSPVerifierPolicy<Requester> where Requester : OCSPRequesterimport X509A library for working with X.509 certificates.
protocol OCSPRequester : Sendablestruct RFC5280PolicyA VerifierPolicy that implements the core chain verifying policies from RFC 5280.
@preconcurrency protocol VerifierPolicyA VerifierPolicy implements a series of checks on an UnverifiedCertificateChain in order to determine whether that chain should be trusted.
struct ServerIdentityPolicyA VerifierPolicy that validates that the leaf certificate is authoritative for a given hostname or IP address.
protocol SendableA thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
init(failureMode: OCSPFailureMode, requester: Requester, fixedValidationTime: Date? = nil) Creates an instance with an optional fixed validation time.
let verifyingCriticalExtensions: [ASN1ObjectIdentifier]mutating func chainMeetsPolicyRequirements(chain: UnverifiedCertificateChain) async -> PolicyEvaluationResult init(failureMode: OCSPFailureMode, requester: Requester, validationTime: Date)