Options
public struct Options : OptionSet, Sendable
Represents the options to be use when evaluating the status of a certificate. Only Revocation Policy Constants are valid, and can be found in Apple’s documentation.
-
Perform revocation checking using the CRL (Certification Revocation List) method.
Declaration
Swift
public static let crl: RevocationTrustEvaluator.Options
-
Consult only locally cached replies; do not use network access.
Declaration
Swift
public static let networkAccessDisabled: RevocationTrustEvaluator.Options
-
Perform revocation checking using OCSP (Online Certificate Status Protocol).
Declaration
Swift
public static let ocsp: RevocationTrustEvaluator.Options
-
Prefer CRL revocation checking over OCSP; by default, OCSP is preferred.
Declaration
Swift
public static let preferCRL: RevocationTrustEvaluator.Options
-
Require a positive response to pass the policy. If the flag is not set, revocation checking is done on a “best attempt” basis, where failure to reach the server is not considered fatal.
Declaration
Swift
public static let requirePositiveResponse: RevocationTrustEvaluator.Options
-
Perform either OCSP or CRL checking. The checking is performed according to the method(s) specified in the certificate and the value of
preferCRL
.Declaration
Swift
public static let any: RevocationTrustEvaluator.Options
-
The raw value of the option.
Declaration
Swift
public let rawValue: CFOptionFlags
-
Creates an
Options
value with the givenCFOptionFlags
.Declaration
Swift
public init(rawValue: CFOptionFlags)
Parameters
rawValue
The
CFOptionFlags
value to initialize with.