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.KeyStoreExceptionjava.io.IOExceptionjava.security.cert.CertificateExceptionjava.security.NoSuchAlgorithmExceptionpublic javax.net.ssl.SSLContext getSSLContext()
throws java.security.KeyManagementException,
java.security.UnrecoverableKeyException,
java.security.NoSuchAlgorithmException,
java.security.KeyStoreException
getSSLContext in interface SSLConfigjava.security.KeyManagementExceptionjava.security.UnrecoverableKeyExceptionjava.security.NoSuchAlgorithmExceptionjava.security.KeyStoreExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2020. All Rights Reserved.