List of usage examples for javax.net.ssl TrustManager toString
public String toString()
From source file:org.openhealthtools.openatna.net.ConnectionCertificateHandler.java
public static void main(String[] args) { try {//from w w w .j a v a 2s. c o m //ConnectionCertificateHandler cch = new ConnectionCertificateHandler(); KeyStore ks = ConnectionCertificateHandler.createKeyStore(new URL("file:certs/keystore"), "password"); ConnectionCertificateHandler.printKeyCertificates(ks); KeyManager[] kms = ConnectionCertificateHandler.createKeyManagers(ks, "password"); System.out.println("Printing all key managers:"); for (KeyManager km : kms) { System.out.println(km.toString()); } KeyStore ts = ConnectionCertificateHandler.createKeyStore(new URL("file:certs/truststore"), "password"); ConnectionCertificateHandler.printTrustCerts(ts); TrustManager[] tms = ConnectionCertificateHandler.createTrustManagers(ts, null); System.out.println("Printing all trust managers:"); for (TrustManager tm : tms) { System.out.println(tm.toString()); } } catch (Exception e) { System.out.println("Top Level Error: " + e); } }