code: private void handshakeFinished()
          throws IOException {
  /*DEL
          // this call just forces some internal library
          // variables to be initailized
          this.conn.finishHandshake();
  */
          String cs =
              this.sslEngine.getSession().getCipherSuite();
          this.encryption = !cs.contains("WITH_NULL");
          logger.debug("encryption alg: " + cs);
      }
docs: /* this is called when handshake is done