Class TlsConfig

java.lang.Object
io.atomix.cluster.messaging.TlsConfig

public class TlsConfig
extends Object
TLS configuration.
  • Constructor Details

  • Method Details

    • isEnabled

      public boolean isEnabled()
      Returns whether TLS is enabled.
      Returns:
      indicates whether TLS is enabled
    • setEnabled

      public TlsConfig setEnabled​(boolean enabled)
      Sets whether TLS is enabled.
      Parameters:
      enabled - whether TLS is enabled
      Returns:
      the TLS configuration
    • getKeyStore

      public String getKeyStore()
      Returns the key store path.
      Returns:
      the key store path
    • setKeyStore

      public TlsConfig setKeyStore​(String keyStore)
      Sets the key store path.
      Parameters:
      keyStore - the key store path
      Returns:
      the TLS configuration
    • getTrustStore

      public String getTrustStore()
      Returns the trust store path.
      Returns:
      the trust store path
    • setTrustStore

      public TlsConfig setTrustStore​(String trustStore)
      Sets the trust store path.
      Parameters:
      trustStore - the trust store path
      Returns:
      the TLS configuration
    • getKeyStorePassword

      public String getKeyStorePassword()
      Returns the key store password.
      Returns:
      the key store password
    • setKeyStorePassword

      public TlsConfig setKeyStorePassword​(String keyStorePassword)
      Sets the key store password.
      Parameters:
      keyStorePassword - the key store password
      Returns:
      the TLS configuration
    • getTrustStorePassword

      public String getTrustStorePassword()
      Returns the trust store password.
      Returns:
      the trust store password
    • setTrustStorePassword

      public TlsConfig setTrustStorePassword​(String trustStorePassword)
      Sets the trust store password.
      Parameters:
      trustStorePassword - the trust store password
      Returns:
      the TLS configuration