public final class SslContextFactory extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SslContextFactory.ClientAuth |
| Constructor and Description |
|---|
SslContextFactory() |
| Modifier and Type | Method and Description |
|---|---|
static SSLContext |
createSslContext(String keystore,
char[] keystorePasswd,
char[] keyPasswd,
String keystoreType,
String protocol)
Creates a SSLContext instance using the given information.
|
static SSLContext |
createSslContext(String keystore,
char[] keystorePasswd,
char[] keyPasswd,
String keystoreType,
String truststore,
char[] truststorePasswd,
String truststoreType,
SslContextFactory.ClientAuth clientAuth,
String protocol)
Creates a SSLContext instance using the given information.
|
static SSLContext |
createSslContext(String keystore,
char[] keystorePasswd,
String keystoreType,
String protocol)
Creates a SSLContext instance using the given information.
|
static SSLContext |
createSslContext(String keystore,
char[] keystorePasswd,
String keystoreType,
String truststore,
char[] truststorePasswd,
String truststoreType,
SslContextFactory.ClientAuth clientAuth,
String protocol)
Creates a SSLContext instance using the given information.
|
static SSLContext |
createTrustSslContext(String truststore,
char[] truststorePasswd,
String truststoreType,
String protocol)
Creates a SSLContext instance using the given information.
|
public static SSLContext createSslContext(String keystore, char[] keystorePasswd, String keystoreType, String truststore, char[] truststorePasswd, String truststoreType, SslContextFactory.ClientAuth clientAuth, String protocol) throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnrecoverableKeyException, KeyManagementException
#createSslContext(String, char[], chart[], String, String, char[], String, ClientAuth, String)
method should be used insteadkeystore - the full path to the keystorekeystorePasswd - the keystore passwordkeystoreType - the type of keystore (e.g., PKCS12, JKS)truststore - the full path to the truststoretruststorePasswd - the truststore passwordtruststoreType - the type of truststore (e.g., PKCS12, JKS)clientAuth - the type of client authenticationprotocol - the protocol to use for the SSL connectionKeyStoreException - if any issues accessing the keystoreIOException - for any problems loading the keystoresNoSuchAlgorithmException - if an algorithm is found to be used but is unknownCertificateException - if there is an issue with the certificateUnrecoverableKeyException - if the key is insufficientKeyManagementException - if unable to manage the keypublic static SSLContext createSslContext(String keystore, char[] keystorePasswd, char[] keyPasswd, String keystoreType, String truststore, char[] truststorePasswd, String truststoreType, SslContextFactory.ClientAuth clientAuth, String protocol) throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnrecoverableKeyException, KeyManagementException
keystore - the full path to the keystorekeystorePasswd - the keystore passwordkeystoreType - the type of keystore (e.g., PKCS12, JKS)truststore - the full path to the truststoretruststorePasswd - the truststore passwordtruststoreType - the type of truststore (e.g., PKCS12, JKS)clientAuth - the type of client authenticationprotocol - the protocol to use for the SSL connectionKeyStoreException - if any issues accessing the keystoreIOException - for any problems loading the keystoresNoSuchAlgorithmException - if an algorithm is found to be used but is unknownCertificateException - if there is an issue with the certificateUnrecoverableKeyException - if the key is insufficientKeyManagementException - if unable to manage the keypublic static SSLContext createSslContext(String keystore, char[] keystorePasswd, String keystoreType, String protocol) throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnrecoverableKeyException, KeyManagementException
createSslContext(String, char[], char[], String, String)
method instead.keystore - the full path to the keystorekeystorePasswd - the keystore passwordkeystoreType - the type of keystore (e.g., PKCS12, JKS)protocol - the protocol to use for the SSL connectionKeyStoreException - if any issues accessing the keystoreIOException - for any problems loading the keystoresNoSuchAlgorithmException - if an algorithm is found to be used but is unknownCertificateException - if there is an issue with the certificateUnrecoverableKeyException - if the key is insufficientKeyManagementException - if unable to manage the keypublic static SSLContext createSslContext(String keystore, char[] keystorePasswd, char[] keyPasswd, String keystoreType, String protocol) throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnrecoverableKeyException, KeyManagementException
keystore - the full path to the keystorekeystorePasswd - the keystore passwordkeystoreType - the type of keystore (e.g., PKCS12, JKS)protocol - the protocol to use for the SSL connectionKeyStoreException - if any issues accessing the keystoreIOException - for any problems loading the keystoresNoSuchAlgorithmException - if an algorithm is found to be used but is unknownCertificateException - if there is an issue with the certificateUnrecoverableKeyException - if the key is insufficientKeyManagementException - if unable to manage the keypublic static SSLContext createTrustSslContext(String truststore, char[] truststorePasswd, String truststoreType, String protocol) throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnrecoverableKeyException, KeyManagementException
truststore - the full path to the truststoretruststorePasswd - the truststore passwordtruststoreType - the type of truststore (e.g., PKCS12, JKS)protocol - the protocol to use for the SSL connectionKeyStoreException - if any issues accessing the keystoreIOException - for any problems loading the keystoresNoSuchAlgorithmException - if an algorithm is found to be used but is unknownCertificateException - if there is an issue with the certificateUnrecoverableKeyException - if the key is insufficientKeyManagementException - if unable to manage the keyCopyright © 2018 Apache NiFi Project. All rights reserved.