Interface SSLContextProvider

All Superinterfaces:
org.apache.nifi.components.ConfigurableComponent, org.apache.nifi.controller.ControllerService
All Known Subinterfaces:
RestrictedSSLContextService, SSLContextService

public interface SSLContextProvider extends org.apache.nifi.controller.ControllerService
Controller Service abstraction for creating instances of javax.net.ssl.SSLContext without access to supporting configuration properties
  • Method Summary

    Modifier and Type
    Method
    Description
    Create and initialize an SSLContext with keys and certificates based on configuration
    Create and initialize an X.509 Key Manager when configured with key and certificate properties
    Create and initialize an X.509 Trust Manager with certificates

    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

    • createContext

      SSLContext createContext()
      Create and initialize an SSLContext with keys and certificates based on configuration
      Returns:
      SSLContext initialized using configured properties
    • createKeyManager

      Optional<X509ExtendedKeyManager> createKeyManager()
      Create and initialize an X.509 Key Manager when configured with key and certificate properties
      Returns:
      X.509 Extended Key Manager or empty when not configured
    • createTrustManager

      X509TrustManager createTrustManager()
      Create and initialize an X.509 Trust Manager with certificates
      Returns:
      X509ExtendedTrustManager initialized using configured certificates