private void doCustomServerIdentityCheck ( X509Certificate cert ) throws CertificateException { if ( EndpointIdentificationAlgorithm . APIS == identityAlg ) { APINameChecker . verifyAndThrow ( trustedNameSet , cert ) ; } }
check server identify as per tls . trustedNames in client . yml .