Class SSLContextFactory
java.lang.Object
io.prometheus.jmx.common.http.ssl.SSLContextFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic SSLContext
createSSLContext
(String keyStoreFilename, String keyStorePassword, String certificateAlias) Method to create an SSLContext
-
Method Details
-
createSSLContext
public static SSLContext createSSLContext(String keyStoreFilename, String keyStorePassword, String certificateAlias) throws GeneralSecurityException, IOException Method to create an SSLContext- Parameters:
keyStoreFilename
- keyStoreFilenamekeyStorePassword
- keyStorePasswordcertificateAlias
- certificateAlias- Returns:
- the return value
- Throws:
GeneralSecurityException
- GeneralSecurityExceptionIOException
- IOException
-