CompositeTrustEvaluator
public final class CompositeTrustEvaluator : ServerTrustEvaluating
Uses the provided evaluators to validate the server trust. The trust is only considered valid if all of the evaluators consider it valid.
-
Creates a
CompositeTrustEvaluator
from the provided evaluators.Declaration
Swift
public init(evaluators: [any ServerTrustEvaluating])
Parameters
evaluators
The
ServerTrustEvaluating
values used to evaluate the server trust. -
Declaration
Swift
public func evaluate(_ trust: SecTrust, forHost host: String) throws