public class KeystoreSSLConfig extends java.lang.Object implements SSLConfig, java.io.Serializable
Constructor and Description |
---|
KeystoreSSLConfig(java.io.File pfxFile,
java.lang.String password) |
KeystoreSSLConfig(java.security.KeyStore keystore,
java.lang.String keystorePassword) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
javax.net.ssl.SSLContext |
getSSLContext()
Get the SSL Context out of the keystore.
|
int |
hashCode() |
java.lang.String |
toString() |
public KeystoreSSLConfig(java.security.KeyStore keystore, java.lang.String keystorePassword)
keystore
- a KeyStorekeystorePassword
- key passwordpublic KeystoreSSLConfig(java.io.File pfxFile, java.lang.String password) throws java.security.KeyStoreException, java.io.IOException, java.security.cert.CertificateException, java.security.NoSuchAlgorithmException
pfxFile
- a PKCS12 filepassword
- Password for the keystorejava.security.KeyStoreException
java.io.IOException
java.security.cert.CertificateException
java.security.NoSuchAlgorithmException
public javax.net.ssl.SSLContext getSSLContext() throws java.security.KeyManagementException, java.security.UnrecoverableKeyException, java.security.NoSuchAlgorithmException, java.security.KeyStoreException
getSSLContext
in interface SSLConfig
java.security.KeyManagementException
java.security.UnrecoverableKeyException
java.security.NoSuchAlgorithmException
java.security.KeyStoreException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2018. All Rights Reserved.