Class SSLClientAuth

  • All Implemented Interfaces:
    java.lang.Runnable

    public class SSLClientAuth
    extends java.lang.Object
    implements java.lang.Runnable
    SSLClientAuth Server/client test.
    • Constructor Summary

      Constructors 
      Constructor Description
      SSLClientAuth()  
    • 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)  
      static Certificate makeCert​(java.lang.String issuerName, java.lang.String subjectName, int serialNumber, java.security.PrivateKey privKey, java.security.PublicKey pubKey, int rand, SEQUENCE extensions)
      Method that generates a certificate for given credential
      void run()
      Server run method.
      void setFailure()  
      • Methods inherited from class java.lang.Object

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

      • port

        public int port
      • serialNum

        public int serialNum
      • serverReady

        public boolean serverReady
    • Constructor Detail

      • SSLClientAuth

        public SSLClientAuth()
    • Method Detail

      • makeCert

        public static Certificate makeCert​(java.lang.String issuerName,
                                           java.lang.String subjectName,
                                           int serialNumber,
                                           java.security.PrivateKey privKey,
                                           java.security.PublicKey pubKey,
                                           int rand,
                                           SEQUENCE extensions)
                                    throws java.lang.Exception
        Method that generates a certificate for given credential
        Parameters:
        issuerName -
        subjectName -
        serialNumber -
        privKey -
        pubKey -
        rand -
        extensions -
        Returns:
        Certificate
        Throws:
        java.lang.Exception
      • main

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

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

        public void setFailure()
      • getSuccess

        public boolean getSuccess()
      • run

        public void run()
        Server run method.
        Specified by:
        run in interface java.lang.Runnable