public class StandardSslContextBuilder extends Object implements SslContextBuilder
| Modifier and Type | Field and Description |
|---|---|
private static String |
DEFAULT_PROTOCOL |
private char[] |
keyPassword |
private KeyStore |
keyStore |
private String |
protocol |
private KeyStore |
trustStore |
| Constructor and Description |
|---|
StandardSslContextBuilder() |
| Modifier and Type | Method and Description |
|---|---|
SSLContext |
build()
Build and initialize an SSL Context using configured Key Manager and Trust Manager sources
|
private KeyManagerFactory |
getKeyManagerFactory() |
private KeyManager[] |
getKeyManagers() |
private SSLContext |
getSslContext() |
private TrustManager[] |
getTrustManagers() |
StandardSslContextBuilder |
keyPassword(char[] keyPassword)
Set Key Password for reading Private Key entries from Key Store
|
StandardSslContextBuilder |
keyStore(KeyStore keyStore)
Set Key Store with Private Key and Certificate Entry
|
StandardSslContextBuilder |
protocol(String protocol)
Set TLS Protocol defaults to TLS without a specific version number
|
StandardSslContextBuilder |
trustStore(KeyStore trustStore)
Set Trust Store with Certificate Entries
|
private static final String DEFAULT_PROTOCOL
private String protocol
private KeyStore keyStore
private char[] keyPassword
private KeyStore trustStore
public SSLContext build()
build in interface SslContextBuilderpublic StandardSslContextBuilder protocol(String protocol)
protocol - TLS Protocolpublic StandardSslContextBuilder keyStore(KeyStore keyStore)
keyStore - Key Storepublic StandardSslContextBuilder keyPassword(char[] keyPassword)
keyPassword - Key Passwordpublic StandardSslContextBuilder trustStore(KeyStore trustStore)
trustStore - Trust Storeprivate KeyManager[] getKeyManagers()
private TrustManager[] getTrustManagers()
private KeyManagerFactory getKeyManagerFactory()
private SSLContext getSslContext()
Copyright © 2023 Apache NiFi Project. All rights reserved.