Package io.airlift.http.server
Class HttpsConfig
java.lang.Object
io.airlift.http.server.HttpsConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintio.airlift.units.Duration@javax.validation.constraints.Min(1L) intio.airlift.units.Duration@javax.validation.constraints.AssertTrue(message="Keystore path or automatic HTTPS shared secret must be provided when HTTPS is enabled") booleansetAutomaticHttpsSharedSecret(String automaticHttpsSharedSecret) setHttpsExcludedCipherSuites(String excludedCipherSuites) setHttpsIncludedCipherSuites(String includedCipherSuites) setHttpsPort(int httpsPort) setKeyManagerPassword(String keyManagerPassword) setKeystorePassword(String keystorePassword) setKeystorePath(String keystorePath) setSecureRandomAlgorithm(String secureRandomAlgorithm) setSslContextRefreshTime(io.airlift.units.Duration sslContextRefreshTime) setSslSessionCacheSize(int sslSessionCacheSize) setSslSessionTimeout(io.airlift.units.Duration sslSessionTimeout) setTrustStorePassword(String trustStorePassword) setTrustStorePath(String trustStorePath)
-
Constructor Details
-
HttpsConfig
public HttpsConfig()
-
-
Method Details
-
getHttpsPort
public int getHttpsPort() -
setHttpsPort
-
getSslSessionTimeout
@MinDuration("1s") public io.airlift.units.Duration getSslSessionTimeout() -
setSslSessionTimeout
@Config("http-server.https.ssl-session-timeout") public HttpsConfig setSslSessionTimeout(io.airlift.units.Duration sslSessionTimeout) -
getSslSessionCacheSize
@Min(1L) public @javax.validation.constraints.Min(1L) int getSslSessionCacheSize() -
setSslSessionCacheSize
@Config("http-server.https.ssl-session-cache-size") public HttpsConfig setSslSessionCacheSize(int sslSessionCacheSize) -
getKeystorePath
-
setKeystorePath
-
getKeystorePassword
-
setKeystorePassword
@Config("http-server.https.keystore.key") public HttpsConfig setKeystorePassword(String keystorePassword) -
isHttpsConfigurationValid
@AssertTrue(message="Keystore path or automatic HTTPS shared secret must be provided when HTTPS is enabled") public @javax.validation.constraints.AssertTrue(message="Keystore path or automatic HTTPS shared secret must be provided when HTTPS is enabled") boolean isHttpsConfigurationValid() -
getKeyManagerPassword
-
setKeyManagerPassword
@Config("http-server.https.keymanager.password") public HttpsConfig setKeyManagerPassword(String keyManagerPassword) -
getTrustStorePath
-
setTrustStorePath
@Config("http-server.https.truststore.path") public HttpsConfig setTrustStorePath(String trustStorePath) -
getTrustStorePassword
-
setTrustStorePassword
@Config("http-server.https.truststore.key") public HttpsConfig setTrustStorePassword(String trustStorePassword) -
getSecureRandomAlgorithm
-
setSecureRandomAlgorithm
@Config("http-server.https.secure-random-algorithm") public HttpsConfig setSecureRandomAlgorithm(String secureRandomAlgorithm) -
getHttpsIncludedCipherSuites
-
setHttpsIncludedCipherSuites
@Config("http-server.https.included-cipher") public HttpsConfig setHttpsIncludedCipherSuites(String includedCipherSuites) -
getHttpsExcludedCipherSuites
-
setHttpsExcludedCipherSuites
@Config("http-server.https.excluded-cipher") public HttpsConfig setHttpsExcludedCipherSuites(String excludedCipherSuites) -
getSslContextRefreshTime
@MinDuration("1s") public io.airlift.units.Duration getSslContextRefreshTime() -
setSslContextRefreshTime
@Config("http-server.https.ssl-context.refresh-time") public HttpsConfig setSslContextRefreshTime(io.airlift.units.Duration sslContextRefreshTime)
-