CertificateManagerValidateCertificates Method (ListX509Certificate2, CertificateManagerCertificateValidatorCompletionHandler) |
Namespace: Avaya.ClientServices
public void ValidateCertificates( List<X509Certificate2> certificateChain, CertificateManagerCertificateValidatorCompletionHandler completionHandler )
While establishing secure connection, the certificate chain is received as part of SSL Handshake that can be validated using this method. The validation result determines if the connection is secure and peer can be trusted. This method performs trust validation asynchronously and upon completion a result is reported through completionHandler argument.
As per RFC 5280, the trust validation involves a certificate chain building which leads up to a trusted anchors. For client application, if the private trust store has been configured, it will be solely used to build a certificate chain. In a case when the private trust store is unavailable, the system certificate stores will be used. This method does not fall back between the certificate stores (private trust store vs system certificate stores) or shares them while looking for the trusted anchors.