Instance Method

shouldEvaluateTrustForConnection:

Indicate that the delegate should override the default trust evaluation for the connection

Declaration

- (BOOL)shouldEvaluateTrustForConnection:(NWTCPConnection *)connection;

Parameters

connection

The connection sending this message

Return Value

Return YES to take over the default trust evaluation, in which case the delegate method evaluateTrustForConnection:peerCertificateChain:completionHandler: will be called.

Discussion

The caller can implement this optional protocol method to decide whether it wants to take over the default trust evaluation for this connection. If this delegate method is not implemented, the return value will default to YES if provideIdentityForConnection:completionHandler: is implemented.

See Also

Delegate Methods

- evaluateTrustForConnection:peerCertificateChain:completionHandler:

Override the default trust evaluation for the connection

- shouldProvideIdentityForConnection:

Indicate that the delegate can provide an identity for the connection authentication

- provideIdentityForConnection:completionHandler:

Provide the identity and an optional certificate chain to be used for authentication