org.apache.zookeeper.client
Class ZooKeeperSaslClient

java.lang.Object
  extended by 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.


Nested Class Summary
static class ZooKeeperSaslClient.ClientCallbackHandler
           
static class ZooKeeperSaslClient.SaslState
           
static class ZooKeeperSaslClient.ServerSaslResponseCallback
           
 
Field Summary
static String LOGIN_CONTEXT_NAME_KEY
           
 
Constructor Summary
ZooKeeperSaslClient(String serverPrincipal)
           
 
Method Summary
 boolean clientTunneledAuthenticationInProgress()
           
 String getConfigStatus()
           
 Watcher.Event.KeeperState getKeeperState()
           
 String getLoginContext()
           
 ZooKeeperSaslClient.SaslState getSaslState()
           
 void initialize(ClientCnxn cnxn)
           
 boolean isComplete()
           
 boolean isFailed()
           
 void respondToServer(byte[] serverToken, ClientCnxn cnxn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGIN_CONTEXT_NAME_KEY

public static final String LOGIN_CONTEXT_NAME_KEY
See Also:
Constant Field Values
Constructor Detail

ZooKeeperSaslClient

public ZooKeeperSaslClient(String serverPrincipal)
                    throws LoginException
Throws:
LoginException
Method Detail

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