ServerTrustEvaluating
public protocol ServerTrustEvaluating
A protocol describing the API used to evaluate server trusts.
-
Evaluates the given
SecTrustvalue for the givenhost.Declaration
Swift
func evaluate(_ trust: SecTrust, forHost host: String) throwsParameters
trustThe
SecTrustvalue to evaluate.hostThe host for which to evaluate the
SecTrustvalue.Return Value
A
Boolindicating whether the evaluator considers theSecTrustvalue valid forhost.
View on GitHub
Install in Dash
ServerTrustEvaluating Protocol Reference