Class JSS_SelfServServer


  • public class JSS_SelfServServer
    extends java.lang.Object
    Note on how to use JSS_SelfServServer and JSS_SelfServerClient For debugging purposes you should modify Constant.java debug_level to 4. First create db's and certificates java -cp jss4.jar org.mozilla.jss.tests.SetupDBs . ./passwords java -cp jss4.jar org.mozilla.jss.tests.GenerateTestCert . /passwords localhost SHA-256/RSA CA_RSA Client_RSA Server_RSA Start the server: java -cp ./jss4.jar org.mozilla.jss.tests.JSS_SelfServServer . passwords localhost false 2921 verboseoff Start the client with 4 threads using ciphersuite 0x33. Look at the file Constant.java for the ciphersuites values. java -cp jss4.jar org.mozilla.jss.tests.JSS_SelfServClient 2 0x33 . localhost 2921 verboseoff JSS Client_RSA If you envoke the client with a ciphersuite value -1 then all current JSS ciphersuites will be tested fox X number of threads, and once all ciphersuites have been tested the client will closed all client SSLSockets and then tell the server to shutdown. This case is for the nightly automated tests. java -cp jss4.jar org.mozilla.jss.tests.JSS_SelfServClient 4 -1 . passwords localhost 2921 verboseoff JSS
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.slf4j.Logger logger  
      int port  
      static java.lang.String usage  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doIt​(java.lang.String[] args)  
      boolean getSuccess()  
      static void main​(java.lang.String[] args)  
      void setFailure()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
      • port

        public int port
      • usage

        public static java.lang.String usage
    • Constructor Detail

      • JSS_SelfServServer

        public JSS_SelfServServer()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • doIt

        public void doIt​(java.lang.String[] args)
                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • setFailure

        public void setFailure()
      • getSuccess

        public boolean getSuccess()