Package org.apache.hadoop.hbase.http
Class HttpServer.Builder
java.lang.Object
org.apache.hadoop.hbase.http.HttpServer.Builder
- Enclosing class:
- HttpServer
Class to construct instances of HTTP server with specific options.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.security.authorize.AccessControlListprivate Stringprivate StringDeprecated.Since 0.99.0.private org.apache.hadoop.conf.Configurationprivate Stringprivate Stringprivate booleanprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate StringDeprecated.Since 0.99.0.private booleanprivate String[]private intDeprecated.Since 0.99.0.private booleanprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEndpoint(URI endpoint) Add an endpoint that the HTTP server should listen to.build()voidexcludeCiphers(String excludeCiphers) Deprecated.Set the hostname of the http server.keyPassword(String password) needsClientAuth(boolean value) Specify whether the server should require a client certificate during the SSL handshake (mTLS).setACL(org.apache.hadoop.security.authorize.AccessControlList acl) setBindAddress(String bindAddress) Deprecated.Since 0.99.0.setConf(org.apache.hadoop.conf.Configuration conf) setExcludeCiphers(String excludeCiphers) setExcludeProtocols(String excludeProtocols) setFindPort(boolean findPort) setIncludeCiphers(String includeCiphers) setIncludeProtocols(String includeProtocols) setKerberosNameRulesKey(String kerberosNameRulesKey) setKeytabConfKey(String keytabConfKey) Deprecated.Since 0.99.0.setPathSpec(String[] pathSpec) setPort(int port) Deprecated.Since 0.99.0.setSecurityEnabled(boolean securityEnabled) setSignatureSecretFileKey(String signatureSecretFileKey) setUsernameConfKey(String usernameConfKey) trustStore(String location, String password, String type) wantsClientAuth(boolean value) Specify whether the server should request a client certificate during the SSL handshake but still accept clients that do not present one.
-
Field Details
-
endpoints
-
conf
-
pathSpecs
-
adminsAcl
-
securityEnabled
-
usernameConfKey
-
keytabConfKey
-
needsClientAuth
-
wantsClientAuth
-
includeCiphers
-
excludeCiphers
-
includeProtocols
-
excludeProtocols
-
hostName
-
appDir
-
logDir
-
findPort
-
trustStore
-
trustStorePassword
-
trustStoreType
-
keyStore
-
keyStorePassword
-
keyStoreType
-
keyPassword
-
kerberosNameRulesKey
-
signatureSecretFileKey
-
name
Deprecated.Since 0.99.0. Use builder pattern viasetAppDir(String)instead.- See Also:
-
bindAddress
Deprecated.Since 0.99.0. Use builder pattern viaaddEndpoint(URI)instead.- See Also:
-
port
Deprecated.Since 0.99.0. Use builder pattern viaaddEndpoint(URI)instead.- See Also:
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addEndpoint
Add an endpoint that the HTTP server should listen to. the endpoint of that the HTTP server should listen to. The scheme specifies the protocol (i.e. HTTP / HTTPS), the host specifies the binding address, and the port specifies the listening port. Unspecified or zero port means that the server can listen to any port. -
hostName
Set the hostname of the http server. The host name is used to resolve the _HOST field in Kerberos principals. The hostname of the first listener will be used if the name is unspecified. -
trustStore
-
keyStore
-
keyPassword
-
needsClientAuth
Specify whether the server should require a client certificate during the SSL handshake (mTLS). When true, clients that do not present a valid certificate are rejected.Takes precedence over
wantsClientAuth(boolean)in Jetty when both are set.Callers enabling either mode must also configure a truststore, since Jetty otherwise silently falls back to the keystore or the JVM cacerts as the client-cert trust anchor. See
X509Util.validateClientAuthTrustStore(org.apache.hadoop.hbase.io.crypto.tls.X509Util.ClientAuth, java.lang.String, java.lang.String, java.lang.String...). -
wantsClientAuth
Specify whether the server should request a client certificate during the SSL handshake but still accept clients that do not present one. Weaker thanneedsClientAuth(boolean): use this to signal "opportunistic mTLS" where a client cert is validated when supplied but its absence is tolerated. -
setName
Deprecated.Since 0.99.0. UsesetAppDir(String)instead.- See Also:
-
setBindAddress
Deprecated.Since 0.99.0. UseaddEndpoint(URI)instead.- See Also:
-
setPort
Deprecated.Since 0.99.0. UseaddEndpoint(URI)instead.- See Also:
-
setFindPort
-
setConf
-
setPathSpec
-
setACL
-
setSecurityEnabled
-
setUsernameConfKey
-
setKeytabConfKey
-
setKerberosNameRulesKey
-
setSignatureSecretFileKey
-
setAppDir
-
setLogDir
-
excludeCiphers
Deprecated. -
setExcludeCiphers
-
setIncludeCiphers
-
setIncludeProtocols
-
setExcludeProtocols
-
build
- Throws:
IOException
-