public class SSLContextFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
private KeyManager[] |
keyManagers |
private String |
keystore |
private char[] |
keystorePass |
private String |
keystoreType |
private TrustManager[] |
trustManagers |
private String |
truststore |
private char[] |
truststorePass |
private String |
truststoreType |
| Constructor and Description |
|---|
SSLContextFactory(NiFiProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
SSLContext |
createSslContext()
Creates a SSLContext instance using the given information.
|
private static char[] |
getPass(String password) |
private final String keystore
private final char[] keystorePass
private final String keystoreType
private final String truststore
private final char[] truststorePass
private final String truststoreType
private final KeyManager[] keyManagers
private final TrustManager[] trustManagers
public SSLContextFactory(NiFiProperties properties) throws NoSuchAlgorithmException, CertificateException, FileNotFoundException, IOException, KeyStoreException, UnrecoverableKeyException
private static char[] getPass(String password)
public SSLContext createSslContext() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnrecoverableKeyException, KeyManagementException
KeyStoreException - if problem with keystoreIOException - if unable to create contextNoSuchAlgorithmException - if algorithm isn't knownCertificateException - if certificate is invalidUnrecoverableKeyException - if the key cannot be recoveredKeyManagementException - if the key is improperCopyright © 2016 Apache NiFi Project. All rights reserved.