Class SSLCertificateHandler

java.lang.Object
de.paull.lib.web.SSLCertificateHandler

public class SSLCertificateHandler extends Object
A class which generates an SSLContext for WebServer and Socket of an JKS certificate
  • Constructor Details

    • SSLCertificateHandler

      public SSLCertificateHandler(InputStream stream, String pw)
      Initializes the SSLContext with certificate
      Parameters:
      stream - stream for the SSLCertificate File, use Reader to get Stream
      pw - password for the SSL certificate
    • SSLCertificateHandler

      public SSLCertificateHandler(String path, String pw) throws IOException
      Initializes the SSLContext with certificate
      Parameters:
      path - path for the SSLCertificate File
      pw - password for the SSL certificate
      Throws:
      IOException
  • Method Details

    • getSSLContext

      public static SSLContext getSSLContext()
      Returns:
      the configured SSLContext