code: public String getStrongestCipher() {
          final String cipher;
          if (cipherExists("AES") && caps.contains(Capability.AES)) {
              cipher = "AES";
          } else if (cipherExists("DESede")
                     && caps.contains(Capability.TRIPLE_DES)) {
              cipher = "DESede";
          } else {
              cipher = "DES";
          }
  
          return cipher;
      }
docs: Returns the strongest cipher algorithm supported by the server and
  client.
  
  The algorithms are ordered thus:
  <ol>
  <li>AES</li>
  <li>DESede ("Triple DES")</li>
  <li>DES</li>
  </ol>
  
  @return the strongest cipher algorithm supported by the server and
  client.