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