@Override public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException { if (!trust.get()) { throw new CertificateException("Server certificate not trusted."); } tm.checkServerTrusted(chain, authType); }
@Override public X509Certificate[] getAcceptedIssuers() { return tm.getAcceptedIssuers(); }
@Override public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException { tm.checkClientTrusted(chain, authType); }