Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

AFError_ServerTrustFailureReason

mattt edited this page Sep 18, 2020 · 2 revisions

AFError.ServerTrustFailureReason

Underlying reason a server trust evaluation error occurred.

public enum ServerTrustFailureReason

Enumeration Cases

noRequiredEvaluator

No ServerTrustEvaluator was found for the associated host.

case noRequiredEvaluator(host:​ String)

noCertificatesFound

No certificates were found with which to perform the trust evaluation.

case noCertificatesFound

noPublicKeysFound

No public keys were found with which to perform the trust evaluation.

case noPublicKeysFound

policyApplicationFailed

During evaluation, application of the associated SecPolicy failed.

case policyApplicationFailed(trust:​ SecTrust, policy:​ SecPolicy, status:​ OSStatus)

settingAnchorCertificatesFailed

During evaluation, setting the associated anchor certificates failed.

case settingAnchorCertificatesFailed(status:​ OSStatus, certificates:[SecCertificate])

revocationPolicyCreationFailed

During evaluation, creation of the revocation policy failed.

case revocationPolicyCreationFailed

trustEvaluationFailed

SecTrust evaluation failed with the associated Error, if one was produced.

case trustEvaluationFailed(error:​ Error?)

defaultEvaluationFailed

Default evaluation failed with the associated Output.

case defaultEvaluationFailed(output:​ Output)

hostValidationFailed

Host validation failed with the associated Output.

case hostValidationFailed(output:​ Output)

revocationCheckFailed

Revocation check failed with the associated Output and options.

case revocationCheckFailed(output:​ Output, options:​ RevocationTrustEvaluator.Options)

certificatePinningFailed

Certificate pinning failed.

case certificatePinningFailed(host:​ String, trust:​ SecTrust, pinnedCertificates:[SecCertificate], serverCertificates:[SecCertificate])

publicKeyPinningFailed

Public key pinning failed.

case publicKeyPinningFailed(host:​ String, trust:​ SecTrust, pinnedKeys:[SecKey], serverKeys:[SecKey])

customEvaluationFailed

Custom server trust evaluation failed due to the associated Error.

case customEvaluationFailed(error:​ Error)
Types
Protocols
Global Typealiases
Clone this wiki locally