Package io.atomix.cluster.messaging
Class TlsConfig
java.lang.Object
io.atomix.cluster.messaging.TlsConfig
public class TlsConfig extends Object
TLS configuration.
-
Constructor Summary
Constructors Constructor Description TlsConfig() -
Method Summary
Modifier and Type Method Description StringgetKeyStore()Returns the key store path.StringgetKeyStorePassword()Returns the key store password.StringgetTrustStore()Returns the trust store path.StringgetTrustStorePassword()Returns the trust store password.booleanisEnabled()Returns whether TLS is enabled.TlsConfigsetEnabled(boolean enabled)Sets whether TLS is enabled.TlsConfigsetKeyStore(String keyStore)Sets the key store path.TlsConfigsetKeyStorePassword(String keyStorePassword)Sets the key store password.TlsConfigsetTrustStore(String trustStore)Sets the trust store path.TlsConfigsetTrustStorePassword(String trustStorePassword)Sets the trust store password.
-
Constructor Details
-
TlsConfig
public TlsConfig()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returns whether TLS is enabled.- Returns:
- indicates whether TLS is enabled
-
setEnabled
Sets whether TLS is enabled.- Parameters:
enabled- whether TLS is enabled- Returns:
- the TLS configuration
-
getKeyStore
Returns the key store path.- Returns:
- the key store path
-
setKeyStore
Sets the key store path.- Parameters:
keyStore- the key store path- Returns:
- the TLS configuration
-
getTrustStore
Returns the trust store path.- Returns:
- the trust store path
-
setTrustStore
Sets the trust store path.- Parameters:
trustStore- the trust store path- Returns:
- the TLS configuration
-
getKeyStorePassword
Returns the key store password.- Returns:
- the key store password
-
setKeyStorePassword
Sets the key store password.- Parameters:
keyStorePassword- the key store password- Returns:
- the TLS configuration
-
getTrustStorePassword
Returns the trust store password.- Returns:
- the trust store password
-
setTrustStorePassword
Sets the trust store password.- Parameters:
trustStorePassword- the trust store password- Returns:
- the TLS configuration
-