RevocationTrustEvaluator_Options - SwiftDocOrg/Alamofire GitHub Wiki
RevocationTrustEvaluator.Options
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.
public struct Options: OptionSet
Inheritance
OptionSet
Initializers
init(rawValue:)
Creates an Options value with the given CFOptionFlags.
public init(rawValue: CFOptionFlags)
Parameters
- rawValue: The
CFOptionFlagsvalue to initialize with.
Properties
crl
Perform revocation checking using the CRL (Certification Revocation List) method.
let crl
networkAccessDisabled
Consult only locally cached replies; do not use network access.
let networkAccessDisabled
ocsp
Perform revocation checking using OCSP (Online Certificate Status Protocol).
let ocsp
preferCRL
Prefer CRL revocation checking over OCSP; by default, OCSP is preferred.
let preferCRL
requirePositiveResponse
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.
let requirePositiveResponse
any
Perform either OCSP or CRL checking. The checking is performed according to the method(s) specified in the
certificate and the value of preferCRL.
let any
rawValue
The raw value of the option.
let rawValue: CFOptionFlags