public class ZooKeeperSaslClient extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ZooKeeperSaslClient.SaslState |
static class |
ZooKeeperSaslClient.ServerSaslResponseCallback |
Modifier and Type | Field and Description |
---|---|
static String |
ENABLE_CLIENT_SASL_DEFAULT
Deprecated.
Use
ZKClientConfig.ENABLE_CLIENT_SASL_DEFAULT
instead. |
static String |
ENABLE_CLIENT_SASL_KEY
Deprecated.
Use
ZKClientConfig.ENABLE_CLIENT_SASL_KEY
instead. |
static String |
LOGIN_CONTEXT_NAME_KEY
Deprecated.
Use
ZKClientConfig.LOGIN_CONTEXT_NAME_KEY
instead. |
Constructor and Description |
---|
ZooKeeperSaslClient(String serverPrincipal,
ZKClientConfig clientConfig) |
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()
Deprecated.
Use
ZKClientConfig.isSaslClientEnabled() instead |
boolean |
isFailed() |
void |
respondToServer(byte[] serverToken,
ClientCnxn cnxn) |
void |
shutdown()
close login thread if running
|
@Deprecated public static final String LOGIN_CONTEXT_NAME_KEY
ZKClientConfig.LOGIN_CONTEXT_NAME_KEY
instead.@Deprecated public static final String ENABLE_CLIENT_SASL_KEY
ZKClientConfig.ENABLE_CLIENT_SASL_KEY
instead.@Deprecated public static final String ENABLE_CLIENT_SASL_DEFAULT
ZKClientConfig.ENABLE_CLIENT_SASL_DEFAULT
instead.public ZooKeeperSaslClient(String serverPrincipal, ZKClientConfig clientConfig) throws LoginException
LoginException
@Deprecated public static boolean isEnabled()
ZKClientConfig.isSaslClientEnabled()
insteadzookeeper.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
SaslException
public boolean clientTunneledAuthenticationInProgress()
public void shutdown()
Copyright © 2008–2019 The Apache Software Foundation. All rights reserved.