@Tags(value={"ssl","secure","certificate","keystore","truststore","jks","p12","pkcs12","pkcs"}) @CapabilityDescription(value="Provides the ability to configure keystore and/or truststore properties once and reuse that configuration throughout the application") public interface SSLContextService extends ControllerService
| Modifier and Type | Interface and Description |
|---|---|
static class |
SSLContextService.ClientAuth
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
SSLContext |
createContext()
Create and initialize
SSLContext using configured properties. |
SSLContext |
createSSLContext(ClientAuth clientAuth)
Deprecated.
The
createContext() method should be used instead |
SSLContext |
createSSLContext(SSLContextService.ClientAuth clientAuth)
Deprecated.
The
createContext() method should be used instead |
TlsConfiguration |
createTlsConfiguration() |
X509TrustManager |
createTrustManager()
Create X.509 Trust Manager using configured properties
|
String |
getKeyPassword() |
String |
getKeyStoreFile() |
String |
getKeyStorePassword() |
String |
getKeyStoreType() |
String |
getSslAlgorithm() |
String |
getTrustStoreFile() |
String |
getTrustStorePassword() |
String |
getTrustStoreType() |
boolean |
isKeyStoreConfigured() |
boolean |
isTrustStoreConfigured() |
initialize, isStatefulgetIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateTlsConfiguration createTlsConfiguration()
SSLContext createContext()
SSLContext using configured properties. This method is preferred over deprecated
create methods due to not requiring a client authentication policy.SSLContext initialized using configured properties@Deprecated SSLContext createSSLContext(ClientAuth clientAuth) throws ProcessException
createContext() method should be used insteadSSLContext from the populated configuration values. This method is deprecated
due to ClientAuth not being applicable or used when initializing the
SSLContextclientAuth - the desired level of client authenticationProcessException - if there is a problem configuring the context@Deprecated SSLContext createSSLContext(SSLContextService.ClientAuth clientAuth) throws ProcessException
createContext() method should be used insteadSSLContext from the populated configuration values. This method is deprecated
due to the use of the deprecated SSLContextService.ClientAuth enum and the
(createContext()) method is preferred.clientAuth - the desired level of client authenticationProcessException - if there is a problem configuring the contextX509TrustManager createTrustManager()
X509TrustManager initialized using configured propertiesString getTrustStoreFile()
String getTrustStoreType()
String getTrustStorePassword()
boolean isTrustStoreConfigured()
String getKeyStoreFile()
String getKeyStoreType()
String getKeyStorePassword()
String getKeyPassword()
boolean isKeyStoreConfigured()
String getSslAlgorithm()
Copyright © 2023 Apache NiFi Project. All rights reserved.