@Override public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException { Handshake handshake = handshake(); if (handshake == null) return null; List<Certificate> result = handshake.peerCertificates(); return !result.isEmpty() ? result.toArray(new Certificate[result.size()]) : null; }
@Override public Principal getLocalPrincipal() { Handshake handshake = handshake(); return handshake != null ? handshake.localPrincipal() : null; }
@Override public Principal getPeerPrincipal() throws SSLPeerUnverifiedException { Handshake handshake = handshake(); return handshake != null ? handshake.peerPrincipal() : null; }
@Override public Certificate[] getLocalCertificates() { Handshake handshake = handshake(); if (handshake == null) return null; List<Certificate> result = handshake.localCertificates(); return !result.isEmpty() ? result.toArray(new Certificate[result.size()]) : null; }
@Override public String getCipherSuite() { Handshake handshake = handshake(); return handshake != null ? handshake.cipherSuite().javaName() : null; }
@Override public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException { Handshake handshake = handshake(); if (handshake == null) return null; List<Certificate> result = handshake.peerCertificates(); return !result.isEmpty() ? result.toArray(new Certificate[result.size()]) : null; }
@Override public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException { Handshake handshake = handshake(); if (handshake == null) return null; List<Certificate> result = handshake.peerCertificates(); return !result.isEmpty() ? result.toArray(new Certificate[result.size()]) : null; }
@Override public Certificate[] getLocalCertificates() { Handshake handshake = handshake(); if (handshake == null) return null; List<Certificate> result = handshake.localCertificates(); return !result.isEmpty() ? result.toArray(new Certificate[result.size()]) : null; }
@Override public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException { Handshake handshake = handshake(); if (handshake == null) return null; List<Certificate> result = handshake.peerCertificates(); return !result.isEmpty() ? result.toArray(new Certificate[result.size()]) : null; }
@Override public Principal getPeerPrincipal() throws SSLPeerUnverifiedException { Handshake handshake = handshake(); return handshake != null ? handshake.peerPrincipal() : null; }
@Override public Principal getLocalPrincipal() { Handshake handshake = handshake(); return handshake != null ? handshake.localPrincipal() : null; }
@Override public Certificate[] getLocalCertificates() { Handshake handshake = handshake(); if (handshake == null) return null; List<Certificate> result = handshake.localCertificates(); return !result.isEmpty() ? result.toArray(new Certificate[result.size()]) : null; }
@Override public Certificate[] getLocalCertificates() { Handshake handshake = handshake(); if (handshake == null) return null; List<Certificate> result = handshake.localCertificates(); return !result.isEmpty() ? result.toArray(new Certificate[result.size()]) : null; }
@Override public Principal getPeerPrincipal() throws SSLPeerUnverifiedException { Handshake handshake = handshake(); return handshake != null ? handshake.peerPrincipal() : null; }
@Override public Principal getLocalPrincipal() { Handshake handshake = handshake(); return handshake != null ? handshake.localPrincipal() : null; }
@Override public Principal getPeerPrincipal() throws SSLPeerUnverifiedException { Handshake handshake = handshake(); return handshake != null ? handshake.peerPrincipal() : null; }
@Override public Principal getLocalPrincipal() { Handshake handshake = handshake(); return handshake != null ? handshake.localPrincipal() : null; }
@Override public String getCipherSuite() { Handshake handshake = handshake(); return handshake != null ? handshake.cipherSuite().javaName() : null; }
@Override public String getCipherSuite() { Handshake handshake = handshake(); return handshake != null ? handshake.cipherSuite().javaName() : null; }
@Override public String getCipherSuite() { Handshake handshake = handshake(); return handshake != null ? handshake.cipherSuite().javaName() : null; }