MicroZookeeperServicepublic interface ZookeeperConfigOptions
Zookeeper options are passed via system properties prior to the ZK Methods/classes being invoked. This implies that:
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
DEFAULT_ZK_ENABLE_SASL_CLIENT |
Default flag for the ZK client: "true".
|
static java.lang.String |
PROP_ZK_ALLOW_FAILED_SASL_CLIENTS |
should the ZK Server Allow failed SASL clients: "zookeeper.allowSaslFailedClients".
|
static java.lang.String |
PROP_ZK_ENABLE_SASL_CLIENT |
Enable SASL secure clients: "zookeeper.sasl.client".
|
static java.lang.String |
PROP_ZK_KINIT_PATH |
Path to a kinit binary: "zookeeper.kinit".
|
static java.lang.String |
PROP_ZK_SASL_CLIENT_CONTEXT |
System property for the JAAS client context : "zookeeper.sasl.clientconfig".
|
static java.lang.String |
PROP_ZK_SASL_CLIENT_USERNAME |
The SASL client username: "zookeeper.sasl.client.username".
|
static java.lang.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 java.lang.String |
PROP_ZK_SERVER_REALM |
Kerberos realm of the server: "zookeeper.server.realm".
|
static java.lang.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 java.lang.String |
SCHEME_DIGEST |
ID scheme for digest auth: "digest".
|
static java.lang.String |
SCHEME_SASL |
ID scheme for SASL: "sasl".
|
static final java.lang.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 java.lang.String DEFAULT_ZK_ENABLE_SASL_CLIENT
static final java.lang.String PROP_ZK_SASL_CLIENT_CONTEXT
Default value is derived from
ZKClientConfig.LOGIN_CONTEXT_NAME_KEY
static final java.lang.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 java.lang.String PROP_ZK_SERVER_SASL_CONTEXT
static final java.lang.String PROP_ZK_SERVER_MAINTAIN_CONNECTION_DESPITE_SASL_FAILURE
static final java.lang.String PROP_ZK_ALLOW_FAILED_SASL_CLIENTS
static final java.lang.String PROP_ZK_SERVER_REALM
static final java.lang.String PROP_ZK_KINIT_PATH
"/usr/bin/kinit"static final java.lang.String SCHEME_SASL
static final java.lang.String SCHEME_DIGEST
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.