Package io.prestosql.server
Class InternalCommunicationConfig
- java.lang.Object
-
- io.prestosql.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 Constructor Description InternalCommunicationConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getKeyStorePassword()
@FileExists String
getKeyStorePath()
@NotNull Optional<String>
getSharedSecret()
String
getTrustStorePassword()
@FileExists String
getTrustStorePath()
boolean
isHttp2Enabled()
boolean
isHttpsRequired()
@javax.validation.constraints.AssertTrue(message="Internal shared secret is required when HTTPS is enabled for internal communications") boolean
isRequiredSharedSecretSet()
InternalCommunicationConfig
setHttp2Enabled(boolean http2Enabled)
InternalCommunicationConfig
setHttpsRequired(boolean httpsRequired)
InternalCommunicationConfig
setKeyStorePassword(String keyStorePassword)
InternalCommunicationConfig
setKeyStorePath(String keyStorePath)
InternalCommunicationConfig
setSharedSecret(String sharedSecret)
InternalCommunicationConfig
setTrustStorePassword(String trustStorePassword)
InternalCommunicationConfig
setTrustStorePath(String trustStorePath)
-
-
-
Method Detail
-
setSharedSecret
@Config("internal-communication.shared-secret") public InternalCommunicationConfig setSharedSecret(String sharedSecret)
-
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
@FileExists public @FileExists String getKeyStorePath()
-
setKeyStorePath
@Config("internal-communication.https.keystore.path") public InternalCommunicationConfig setKeyStorePath(String keyStorePath)
-
getKeyStorePassword
public String getKeyStorePassword()
-
setKeyStorePassword
@Config("internal-communication.https.keystore.key") public InternalCommunicationConfig setKeyStorePassword(String keyStorePassword)
-
getTrustStorePath
@FileExists public @FileExists String getTrustStorePath()
-
setTrustStorePath
@Config("internal-communication.https.truststore.path") public InternalCommunicationConfig setTrustStorePath(String trustStorePath)
-
getTrustStorePassword
public String getTrustStorePassword()
-
setTrustStorePassword
@Config("internal-communication.https.truststore.key") public InternalCommunicationConfig setTrustStorePassword(String trustStorePassword)
-
isRequiredSharedSecretSet
@AssertTrue(message="Internal shared secret is required when HTTPS is enabled for internal communications") public @javax.validation.constraints.AssertTrue(message="Internal shared secret is required when HTTPS is enabled for internal communications") boolean isRequiredSharedSecretSet()
-
-