public class ZooKeeperSaslClient extends 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 String |
ENABLE_CLIENT_SASL_DEFAULT |
static String |
ENABLE_CLIENT_SASL_KEY |
static String |
LOGIN_CONTEXT_NAME_KEY |
| Constructor and Description |
|---|
ZooKeeperSaslClient(String serverPrincipal) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
clientTunneledAuthenticationInProgress() |
String |
getConfigStatus() |
Watcher.Event.KeeperState |
getKeeperState() |
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 String LOGIN_CONTEXT_NAME_KEY
public static final String ENABLE_CLIENT_SASL_KEY
public static final String ENABLE_CLIENT_SASL_DEFAULT
public ZooKeeperSaslClient(String serverPrincipal) throws LoginException
LoginExceptionpublic static boolean isEnabled()
zookeeper.sasl.client to false. See
ZOOKEEPER-1657 for more information.public ZooKeeperSaslClient.SaslState getSaslState()
public String getLoginContext()
public 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 SaslException
SaslExceptionpublic boolean clientTunneledAuthenticationInProgress()
Copyright © 2015 The Apache Software Foundation