Back to Alamofire

Options

docs/Classes/RevocationTrustEvaluator/Options.html

5.12.02.4 KB
Original Source

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.

`

                crl
                `

Perform revocation checking using the CRL (Certification Revocation List) method.

Declaration

Swift

public static let crl: RevocationTrustEvaluator.Options

`

                networkAccessDisabled
                `

Consult only locally cached replies; do not use network access.

Declaration

Swift

public static let networkAccessDisabled: RevocationTrustEvaluator.Options

`

                ocsp
                `

Perform revocation checking using OCSP (Online Certificate Status Protocol).

Declaration

Swift

public static let ocsp: RevocationTrustEvaluator.Options

`

                preferCRL
                `

Prefer CRL revocation checking over OCSP; by default, OCSP is preferred.

Declaration

Swift

public static let preferCRL: RevocationTrustEvaluator.Options

`

                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.

Declaration

Swift

public static let requirePositiveResponse: RevocationTrustEvaluator.Options

`

                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.

Declaration

Swift

public static let any: RevocationTrustEvaluator.Options

`

                rawValue
                `

The raw value of the option.

Declaration

Swift

public let rawValue: CFOptionFlags

`

                init(rawValue:)
                `

Creates an Options value with the given CFOptionFlags.

Declaration

Swift

public init(rawValue: CFOptionFlags)

Parameters

| rawValue |

The CFOptionFlags value to initialize with.

|