Avaya Client Services API Reference (Windows)
Avaya Client Services API Reference (Windows)
Avaya.ClientServices
CertificateManager Class
CertificateManager Methods
ValidateCertificates Method
ValidateCertificates Method (List(X509Certificate2), CertificateManager.CertificateValidatorCompletionHandler)
ValidateCertificates Method (List(X509Certificate2), String, String, Int32, CertificateManager.CertificateValidatorCompletionHandler)

# CertificateManager ValidateCertificates Method (List X509Certificate2 , CertificateManager CertificateValidatorCompletionHandler)

Performs a trust validation of a certificate chain to determine if the secure connection with the peer can be trusted.

Namespace: Avaya.ClientServices
Assembly: AvayaClientServices (in AvayaClientServices.dll) Version: 550.0.60.0
Syntax
C#
Copy

    public void ValidateCertificates(
    	List<X509Certificate2> certificateChain,
    	CertificateManagerCertificateValidatorCompletionHandler completionHandler
    )

#### Parameters

certificateChain
  Type: System.Collections.Generic
  List
  X509Certificate2
  Certificate chain subjected to validation.
completionHandler
  Type: Avaya.ClientServices
  CertificateManager
  CertificateValidatorCompletionHandler
  The completion handler for this operation.

Remarks

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.

See Also

#### Reference

CertificateManager Class
ValidateCertificates Overload
Avaya.ClientServices Namespace

© 2017 Avaya LLC. All Rights Reserved.