private static void printSocketInfo(SSLSocket s) { LOGGER.info("Socket class: " + s.getClass()); LOGGER.info(" Remote address = " + s.getInetAddress().toString()); LOGGER.info(" Remote port = " + s.getPort()); LOGGER.info(" Local socket address = " + s.getLocalSocketAddress().toString()); LOGGER.info(" Local address = " + s.getLocalAddress().toString()); LOGGER.info(" Local port = " + s.getLocalPort()); LOGGER.info(" Need client authentication = " + s.getNeedClientAuth()); SSLSession ss = s.getSession(); LOGGER.info(" Cipher suite = " + ss.getCipherSuite()); LOGGER.info(" Protocol = " + ss.getProtocol()); }
public boolean getNeedClientAuth() { return delegate.getNeedClientAuth(); }