Class JSSE_SSLServer


  • public class JSSE_SSLServer
    extends java.lang.Object
    JSSE SSLServer class that acts as SSL Server
    • Constructor Summary

      Constructors 
      Constructor Description
      JSSE_SSLServer()
      Constructs a JSSE_SSLServer.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getKeystore()
      Get the location of keystore file.
      java.lang.String getProvider()
      Get the configured provider.
      static void main​(java.lang.String[] args)
      Main method to create the class server.
      void setKeystore​(java.lang.String fconfigDir)
      Set the location of keystore file.
      void setProvider​(java.lang.String p)
      Set the provider to use.
      void startSSLServer​(java.lang.String[] args)
      Start SSLServer and accept connections.
      • Methods inherited from class java.lang.Object

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

      • JSSE_SSLServer

        public JSSE_SSLServer()
                       throws java.io.IOException
        Constructs a JSSE_SSLServer.
        Throws:
        java.io.IOException
    • Method Detail

      • setProvider

        public void setProvider​(java.lang.String p)
        Set the provider to use.
        Parameters:
        p -
      • getProvider

        public java.lang.String getProvider()
        Get the configured provider.
        Returns:
        String provider
      • setKeystore

        public void setKeystore​(java.lang.String fconfigDir)
        Set the location of keystore file.
        Parameters:
        fconfigDir -
      • getKeystore

        public java.lang.String getKeystore()
        Get the location of keystore file.
        Returns:
        String configDir
      • main

        public static void main​(java.lang.String[] args)
        Main method to create the class server. This takes one command line arguments, the port on which the server accepts requests.
      • startSSLServer

        public void startSSLServer​(java.lang.String[] args)
                            throws java.lang.Exception
        Start SSLServer and accept connections.
        Parameters:
        args -
        Throws:
        java.lang.Exception