Class TlsPlatform

java.lang.Object
org.apache.nifi.security.util.TlsPlatform

public class TlsPlatform extends Object
Transport Layer Security Platform provides runtime protocol configuration information
  • Field Details

    • PROTOCOL_VERSION

      private static final Pattern PROTOCOL_VERSION
    • FIRST_GROUP

      private static final int FIRST_GROUP
      See Also:
    • LEGACY_PROTOCOLS

      private static final List<String> LEGACY_PROTOCOLS
    • SORTED_PROTOCOLS

      private static final SortedMap<Float,String> SORTED_PROTOCOLS
    • SUPPORTED_PROTOCOLS

      private static final Set<String> SUPPORTED_PROTOCOLS
    • PREFERRED_PROTOCOLS

      private static final Set<String> PREFERRED_PROTOCOLS
  • Constructor Details

    • TlsPlatform

      public TlsPlatform()
  • Method Details

    • getSupportedProtocols

      public static Set<String> getSupportedProtocols()
      Get all supported protocols based on Java Security configuration
      Returns:
      Set of all supported Transport Layer Security Protocol names available on the JVM
    • getPreferredProtocols

      public static Set<String> getPreferredProtocols()
      Get Preferred Protocols based on supported protocols with legacy protocols removed
      Returns:
      Set of Preferred Transport Layer Security Protocol names
    • getLatestProtocol

      public static String getLatestProtocol()
      Get Latest Protocol based on high version number from default protocols in Java Security configuration
      Returns:
      Latest Transport Layer Security Protocol
    • getDefaultSslContextProtocols

      private static SortedMap<Float,String> getDefaultSslContextProtocols()
    • getDefaultSslContext

      private static SSLContext getDefaultSslContext()