Class SSLClient

java.lang.Object
org.mozilla.jss.ssl.SSLClient

public class SSLClient extends Object
Parameters supported by this socket test: filename file to be read from https server (default: /index.html) port port to connect to (default: 443) ipaddr address to connect to (overrides hostname, no default) hostname host to connect to (no default) clientauth do client-auth or not (default: no client-auth) The following parameters are used for regression testing, so we can print success or failure of the test. filesize size of file to be read status security status of connection - this has to be an integer cipher sessionKeySize sessionSecretSize issuer subject certSerialNum
  • Field Details

    • handshakeEventHappened

      boolean handshakeEventHappened
    • doClientAuth

      boolean doClientAuth
    • args

    • results

      PrintStream results
    • versionStr

      String versionStr
    • argNames

      String[] argNames
    • values

      String[] values
    • okay

      String okay
    • failed

      String failed
    • htmlHeader

      private static String htmlHeader
    • cipherSuites

      static final int[] cipherSuites
  • Constructor Details

  • Method Details

    • isInvalid

      private boolean isInvalid(String s)
    • getArgument

      private String getArgument(String key)
    • cmp

      private String cmp(String s1, String s2)
    • cmp

      private String cmp(String s1, int s2)
    • run

      public void run(boolean printHeader, boolean testRegression)
    • escapeHTML

      private String escapeHTML(String s)
      given an input string, convert less-than, greater-than, and ampersand from raw characters to escaped characters (< becomes `&lt;', etc.)
    • main

      public static void main(String[] argv) throws Exception
      Throws:
      Exception