Package de.paull.lib.web
Class SSLCertificateHandler
java.lang.Object
de.paull.lib.web.SSLCertificateHandler
A class which generates an SSLContext for WebServer and Socket of an JKS certificate
-
Constructor Summary
ConstructorsConstructorDescriptionSSLCertificateHandler(InputStream stream, String pw) Initializes the SSLContext with certificateSSLCertificateHandler(String path, String pw) Initializes the SSLContext with certificate -
Method Summary
-
Constructor Details
-
SSLCertificateHandler
Initializes the SSLContext with certificate- Parameters:
stream- stream for the SSLCertificate File, use Reader to get Streampw- password for the SSL certificate
-
SSLCertificateHandler
Initializes the SSLContext with certificate- Parameters:
path- path for the SSLCertificate Filepw- password for the SSL certificate- Throws:
IOException
-
-
Method Details
-
getSSLContext
- Returns:
- the configured SSLContext
-