== How to fix it in Java Cryptographic Extension === Code examples include::../../common/fix/code-rationale.adoc[] :cert_method_name: X509TrustManager include::../../common/fix/code-rationale-override.adoc[] ==== Noncompliant code example [source,kotlin] ---- val trustAllCerts = arrayOf(object : X509TrustManager { @Throws(CertificateException::class) override fun checkClientTrusted(chain: Array, authType: String) { } // Noncompliant @Throws(CertificateException::class) override fun checkServerTrusted(chain: Array, authType: String) { } // Noncompliant override fun getAcceptedIssuers(): Array { return arrayOf() } }) ---- === How does this work? include::../../common/fix/validation.adoc[] include::../../common/fix/keytool.adoc[]