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