DisabledTrustEvaluator

public final class DisabledTrustEvaluator : ServerTrustEvaluating

Disables all evaluation which in turn will always consider any server trust as valid.

Note

Instead of disabling server trust evaluation, it’s a better idea to configure systems to properly trust test certificates, as outlined in this Apple tech note.

THIS EVALUATOR SHOULD NEVER BE USED IN PRODUCTION!

  • Creates an instance.

    Declaration

    Swift

    public init()
  • Declaration

    Swift

    public func evaluate(_ trust: SecTrust, forHost host: String) throws