org.apache.zookeeper.client
Class ZooKeeperSaslClient
java.lang.Object
org.apache.zookeeper.client.ZooKeeperSaslClient
public class ZooKeeperSaslClient
- extends Object
This class manages SASL authentication for the client. It
allows ClientCnxn to authenticate using SASL with a Zookeeper server.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGIN_CONTEXT_NAME_KEY
public static final String LOGIN_CONTEXT_NAME_KEY
- See Also:
- Constant Field Values
ZooKeeperSaslClient
public ZooKeeperSaslClient(String serverPrincipal)
throws LoginException
- Throws:
LoginException
getSaslState
public ZooKeeperSaslClient.SaslState getSaslState()
getLoginContext
public String getLoginContext()
getConfigStatus
public String getConfigStatus()
- Returns:
- informational message indicating the current configuration status.
isComplete
public boolean isComplete()
isFailed
public boolean isFailed()
respondToServer
public void respondToServer(byte[] serverToken,
ClientCnxn cnxn)
getKeeperState
public Watcher.Event.KeeperState getKeeperState()
initialize
public void initialize(ClientCnxn cnxn)
throws SaslException
- Throws:
SaslException
clientTunneledAuthenticationInProgress
public boolean clientTunneledAuthenticationInProgress()
Copyright © 2013 The Apache Software Foundation