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 initializeSSLContextusing configured properties.Create X.509 Trust Manager using configured propertiesbooleanbooleanMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateMethods inherited from interface org.apache.nifi.controller.ControllerService
initialize, isStateful, migrateProperties
-
Method Details
-
createTlsConfiguration
TlsConfiguration createTlsConfiguration() -
createContext
SSLContext createContext()Create and initializeSSLContextusing configured properties. This method is preferred over deprecated create methods due to not requiring a client authentication policy.- Returns:
SSLContextinitialized using configured properties
-
createTrustManager
X509TrustManager createTrustManager()Create X.509 Trust Manager using configured properties- Returns:
X509TrustManagerinitialized 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()
-