Package org.apache.nifi.ssl
Interface SSLContextService
- All Superinterfaces:
ConfigurableComponent
,ControllerService
- All Known Subinterfaces:
RestrictedSSLContextService
@Tags({"ssl","secure","certificate","keystore","truststore","jks","p12","pkcs12","pkcs"})
@CapabilityDescription("Provides the ability to configure keystore and/or truststore properties once and reuse that configuration throughout the application")
public interface SSLContextService
extends ControllerService
Definition for SSLContextService.
-
Method Summary
Modifier and TypeMethodDescriptionCreate and initializeSSLContext
using configured properties.Create X.509 Trust Manager using configured propertiesboolean
boolean
Methods inherited from interface org.apache.nifi.components.ConfigurableComponent
getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
Methods inherited from interface org.apache.nifi.controller.ControllerService
initialize, isStateful, migrateProperties
-
Method Details
-
createTlsConfiguration
TlsConfiguration createTlsConfiguration() -
createContext
SSLContext createContext()Create and initializeSSLContext
using configured properties. This method is preferred over deprecated create methods due to not requiring a client authentication policy.- Returns:
SSLContext
initialized using configured properties
-
createTrustManager
X509TrustManager createTrustManager()Create X.509 Trust Manager using configured properties- Returns:
X509TrustManager
initialized using configured properties
-
getTrustStoreFile
String getTrustStoreFile() -
getTrustStoreType
String getTrustStoreType() -
getTrustStorePassword
String getTrustStorePassword() -
isTrustStoreConfigured
boolean isTrustStoreConfigured() -
getKeyStoreFile
String getKeyStoreFile() -
getKeyStoreType
String getKeyStoreType() -
getKeyStorePassword
String getKeyStorePassword() -
getKeyPassword
String getKeyPassword() -
isKeyStoreConfigured
boolean isKeyStoreConfigured() -
getSslAlgorithm
String getSslAlgorithm()
-