List of usage examples for javax.net.ssl HandshakeCompletedEvent getLocalCertificates
public java.security.cert.Certificate[] getLocalCertificates()
From source file:org.mule.transport.http.HttpServerConnection.java
@Override public void handshakeCompleted(HandshakeCompletedEvent handshakeCompletedEvent) { try {/* ww w .ja v a 2s . c o m*/ localCertificateChain = handshakeCompletedEvent.getLocalCertificates(); try { peerCertificateChain = handshakeCompletedEvent.getPeerCertificates(); } catch (SSLPeerUnverifiedException e) { logger.debug("Cannot get peer certificate chain: " + e.getMessage()); } } finally { sslSocketHandshakeComplete.release(); } }