public class ZooKeeperSaslClient
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ZooKeeperSaslClient.ClientCallbackHandler |
static class |
ZooKeeperSaslClient.SaslState |
static class |
ZooKeeperSaslClient.ServerSaslResponseCallback |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ENABLE_CLIENT_SASL_DEFAULT |
static java.lang.String |
ENABLE_CLIENT_SASL_KEY |
static java.lang.String |
LOGIN_CONTEXT_NAME_KEY |
| Constructor and Description |
|---|
ZooKeeperSaslClient(java.lang.String serverPrincipal) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
clientTunneledAuthenticationInProgress() |
java.lang.String |
getConfigStatus() |
Watcher.Event.KeeperState |
getKeeperState() |
java.lang.String |
getLoginContext() |
ZooKeeperSaslClient.SaslState |
getSaslState() |
void |
initialize(ClientCnxn cnxn) |
boolean |
isComplete() |
static boolean |
isEnabled()
Returns true if the SASL client is enabled.
|
boolean |
isFailed() |
void |
respondToServer(byte[] serverToken,
ClientCnxn cnxn) |
public static final java.lang.String LOGIN_CONTEXT_NAME_KEY
public static final java.lang.String ENABLE_CLIENT_SASL_KEY
public static final java.lang.String ENABLE_CLIENT_SASL_DEFAULT
public ZooKeeperSaslClient(java.lang.String serverPrincipal)
throws javax.security.auth.login.LoginException
javax.security.auth.login.LoginExceptionpublic static boolean isEnabled()
zookeeper.sasl.client to false. See
ZOOKEEPER-1657 for more information.public ZooKeeperSaslClient.SaslState getSaslState()
public java.lang.String getLoginContext()
public java.lang.String getConfigStatus()
public boolean isComplete()
public boolean isFailed()
public void respondToServer(byte[] serverToken,
ClientCnxn cnxn)
public Watcher.Event.KeeperState getKeeperState()
public void initialize(ClientCnxn cnxn) throws javax.security.sasl.SaslException
javax.security.sasl.SaslExceptionpublic boolean clientTunneledAuthenticationInProgress()
Copyright © 2016 The Apache Software Foundation