Class TLS

java.lang.Object
org.jgroups.util.TLS
All Implemented Interfaces:
Lifecycle

public class TLS extends Object implements Lifecycle
Component to configure TLS in protocols (TCP and TUNNEL).
Since:
5.2.15
  • Field Details

    • enabled

      protected boolean enabled
    • protocols

      protected String[] protocols
    • cipher_suites

      protected String[] cipher_suites
    • provider

      protected String provider
    • keystore_path

      protected String keystore_path
    • keystore_password

      protected String keystore_password
    • keystore_type

      protected String keystore_type
    • keystore_alias

      protected String keystore_alias
    • truststore_path

      protected String truststore_path
    • truststore_password

      protected String truststore_password
    • truststore_type

      protected String truststore_type
    • ssl_context

      protected SSLContext ssl_context
    • client_auth

      protected TLSClientAuth client_auth
    • sni_matchers

      protected List<SNIMatcher> sni_matchers
    • watcher

      protected FileWatcher watcher
  • Constructor Details

    • TLS

      public TLS()
  • Method Details

    • enabled

      public boolean enabled()
    • enabled

      public TLS enabled(boolean e)
    • getProtocols

      public String[] getProtocols()
    • setProtocols

      public TLS setProtocols(String[] p)
    • getCipherSuites

      public String[] getCipherSuites()
    • setCipherSuites

      public TLS setCipherSuites(String[] c)
    • getProvider

      public String getProvider()
    • setProvider

      public TLS setProvider(String p)
    • getKeystorePath

      public String getKeystorePath()
    • setKeystorePath

      public TLS setKeystorePath(String k)
    • getKeystorePassword

      public String getKeystorePassword()
    • setKeystorePassword

      public TLS setKeystorePassword(String k)
    • getKeystoreType

      public String getKeystoreType()
    • setKeystoreType

      public TLS setKeystoreType(String k)
    • getKeystoreAlias

      public String getKeystoreAlias()
    • setKeystoreAlias

      public TLS setKeystoreAlias(String k)
    • getTruststorePath

      public String getTruststorePath()
    • setTruststorePath

      public TLS setTruststorePath(String t)
    • getTruststorePassword

      public String getTruststorePassword()
    • setTruststorePassword

      public TLS setTruststorePassword(String t)
    • getTruststoreType

      public String getTruststoreType()
    • setTruststoreType

      public TLS setTruststoreType(String t)
    • getSSLContext

      public SSLContext getSSLContext()
    • setSSLContext

      public TLS setSSLContext(SSLContext c)
    • getClientAuth

      public TLSClientAuth getClientAuth()
    • setClientAuth

      public TLS setClientAuth(TLSClientAuth c)
    • getSniMatchers

      public List<SNIMatcher> getSniMatchers()
    • setSniMatchers

      public TLS setSniMatchers(List<SNIMatcher> s)
    • getWatcher

      public FileWatcher getWatcher()
    • setWatcher

      public void setWatcher(FileWatcher watcher)
    • init

      public void init() throws Exception
      Description copied from interface: Lifecycle
      Called after an instance has been created and before it is started.
      Specified by:
      init in interface Lifecycle
      Throws:
      Exception - Thrown if the instance cannot be initialized successfully.
    • createContext

      public SSLContext createContext()
    • createSocketFactory

      public SocketFactory createSocketFactory()
    • createSocketFactory

      public SocketFactory createSocketFactory(SSLContext context)