ServerTrustEvaluating
public protocol ServerTrustEvaluating
A protocol describing the API used to evaluate server trusts.
-
Evaluates the given
SecTrust
value for the givenhost
.Declaration
Swift
func evaluate(_ trust: SecTrust, forHost host: String) throws
Parameters
trust
The
SecTrust
value to evaluate.host
The host for which to evaluate the
SecTrust
value.Return Value
A
Bool
indicating whether the evaluator considers theSecTrust
value valid forhost
.