Given the partial or complete certificate chain provided by the peer, build a certificate path to a trusted root and return if it can be validated and is trusted for client SSL authentication based on the authentication type.
The authentication type is determined by the actual certificate used. For instance, if RSAPublicKey is used, the authType should be "RSA". Checking is case-sensitive.
@param chain the peer certificate chain
@param authType the authentication type based on the client certificate
@throws IllegalArgumentException if null or zero-length chainis passed in for the chain parameter or if null or zero-length string is passed in for the authType parameter
@throws CertificateException if the certificate chain is not trustedby this TrustManager.