Package io.trino.server
Class InternalCommunicationConfig
java.lang.Object
io.trino.server.InternalCommunicationConfig
@DefunctConfig({"internal-communication.kerberos.enabled","internal-communication.kerberos.use-canonical-hostname","internal-communication.jwt.enabled"})
public class InternalCommunicationConfig
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@FileExists String@FileExists Stringboolean@jakarta.validation.constraints.AssertTrue(message="HTTPS must be enabled when HTTPS is required for internal communications. Set http-server.https.enabled=true") booleanbooleanboolean@jakarta.validation.constraints.AssertTrue(message="Internal shared secret is required when HTTPS is enabled for internal communications") booleansetHttp2Enabled(boolean http2Enabled) setHttpServerHttpsEnabled(boolean httpServerHttpsEnabled) setHttpsRequired(boolean httpsRequired) setKeyStorePassword(String keyStorePassword) setKeyStorePath(String keyStorePath) setSharedSecret(String sharedSecret) setTrustStorePassword(String trustStorePassword) setTrustStorePath(String trustStorePath)
-
Constructor Details
-
InternalCommunicationConfig
public InternalCommunicationConfig()
-
-
Method Details
-
isHttp2Enabled
public boolean isHttp2Enabled() -
setHttp2Enabled
@Config("internal-communication.http2.enabled") public InternalCommunicationConfig setHttp2Enabled(boolean http2Enabled) -
isHttpsRequired
public boolean isHttpsRequired() -
setHttpsRequired
@Config("internal-communication.https.required") public InternalCommunicationConfig setHttpsRequired(boolean httpsRequired) -
getKeyStorePath
-
setKeyStorePath
@Config("internal-communication.https.keystore.path") public InternalCommunicationConfig setKeyStorePath(String keyStorePath) -
getKeyStorePassword
-
setKeyStorePassword
@Config("internal-communication.https.keystore.key") public InternalCommunicationConfig setKeyStorePassword(String keyStorePassword) -
getTrustStorePath
-
setTrustStorePath
@Config("internal-communication.https.truststore.path") public InternalCommunicationConfig setTrustStorePath(String trustStorePath) -
getTrustStorePassword
-
setTrustStorePassword
@Config("internal-communication.https.truststore.key") public InternalCommunicationConfig setTrustStorePassword(String trustStorePassword) -
isHttpServerHttpsEnabled
public boolean isHttpServerHttpsEnabled() -
setHttpServerHttpsEnabled
@Config("http-server.https.enabled") public InternalCommunicationConfig setHttpServerHttpsEnabled(boolean httpServerHttpsEnabled) -
isHttpsEnabledWhenRequired
@AssertTrue(message="HTTPS must be enabled when HTTPS is required for internal communications. Set http-server.https.enabled=true") public @jakarta.validation.constraints.AssertTrue(message="HTTPS must be enabled when HTTPS is required for internal communications. Set http-server.https.enabled=true") boolean isHttpsEnabledWhenRequired()