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

CompositeTrustEvaluator

mattt edited this page Sep 18, 2020 · 2 revisions

CompositeTrustEvaluator

Uses the provided evaluators to validate the server trust. The trust is only considered valid if all of the evaluators consider it valid.

public final class CompositeTrustEvaluator:​ ServerTrustEvaluating

Inheritance

ServerTrustEvaluating

Initializers

init(evaluators:​)

Creates a CompositeTrustEvaluator.

public init(evaluators:[ServerTrustEvaluating])

Parameters

  • evaluators:​ The ServerTrustEvaluating values used to evaluate the server trust.

Methods

evaluate(_:​forHost:​)

public func evaluate(_ trust:​ SecTrust, forHost host:​ String) throws
Types
Protocols
Global Typealiases
Clone this wiki locally