public interface ZookeeperConfigOptions
Zookeeper options are passed via system properties prior to the ZK Methods/classes being invoked. This implies that:
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ZK_ENABLE_SASL_CLIENT
Default flag for the ZK client: "true".
|
static String |
PROP_ZK_ALLOW_FAILED_SASL_CLIENTS
should the ZK Server Allow failed SASL clients: "zookeeper.allowSaslFailedClients".
|
static String |
PROP_ZK_ENABLE_SASL_CLIENT
Enable SASL secure clients: "zookeeper.sasl.client".
|
static String |
PROP_ZK_KINIT_PATH
Path to a kinit binary: "zookeeper.kinit".
|
static String |
PROP_ZK_SASL_CLIENT_CONTEXT
System property for the JAAS client context : "zookeeper.sasl.clientconfig".
|
static String |
PROP_ZK_SASL_CLIENT_USERNAME
The SASL client username: "zookeeper.sasl.client.username".
|
static String |
PROP_ZK_SERVER_MAINTAIN_CONNECTION_DESPITE_SASL_FAILURE
Should ZK Server allow failed SASL clients to downgrade to classic
authentication on a SASL auth failure: "zookeeper.maintain_connection_despite_sasl_failure".
|
static String |
PROP_ZK_SERVER_REALM
Kerberos realm of the server: "zookeeper.server.realm".
|
static String |
PROP_ZK_SERVER_SASL_CONTEXT
The SASL Server context, referring to a context in the JVM's
JAAS context file: "zookeeper.sasl.serverconfig"
|
static String |
SCHEME_DIGEST
ID scheme for digest auth: "digest".
|
static String |
SCHEME_SASL
ID scheme for SASL: "sasl".
|
static final String PROP_ZK_ENABLE_SASL_CLIENT
PROP_ZK_SERVER_MAINTAIN_CONNECTION_DESPITE_SASL_FAILURE
.
As a result, clients will default to attempting SASL-authentication, but revert to classic authentication/anonymous access on failure.
static final String DEFAULT_ZK_ENABLE_SASL_CLIENT
static final String PROP_ZK_SASL_CLIENT_CONTEXT
Default value is derived from
ZooKeeperSaslClient.LOGIN_CONTEXT_NAME_KEY
static final String PROP_ZK_SASL_CLIENT_USERNAME
Set this to the short name of the client, e.g, "user",
not user/host
, or user/host@REALM
static final String PROP_ZK_SERVER_SASL_CONTEXT
static final String PROP_ZK_SERVER_MAINTAIN_CONNECTION_DESPITE_SASL_FAILURE
static final String PROP_ZK_ALLOW_FAILED_SASL_CLIENTS
static final String PROP_ZK_SERVER_REALM
static final String PROP_ZK_KINIT_PATH
"/usr/bin/kinit"
static final String SCHEME_SASL
static final String SCHEME_DIGEST
Copyright © 2018 Apache Software Foundation. All Rights Reserved.