public SSLSession sslSession() throws IllegalStateException {
        return sslEngine.getSession();
    }
returns an SSL Session after the handshake is established
throws IllegalStateException if the handshake is not established
clients/src/main/java/org/apache/kafka/common/network/SslTransportLayer.java