ClientCnxn.java 文件源码

java
阅读 34 收藏 0 点赞 0 评论 0

项目:ZooKeeper 作者:
public boolean clientTunneledAuthenticationInProgress() {
    // 1. SASL client is disabled.
    if (!ZooKeeperSaslClient.isEnabled()) {
        return false;
    }

    // 2. SASL login failed.
    if (saslLoginFailed == true) {
        return false;
    }

    // 3. SendThread has not created the authenticating object yet,
    // therefore authentication is (at the earliest stage of being) in progress.
    if (zooKeeperSaslClient == null) {
        return true;
    }

    // 4. authenticating object exists, so ask it for its progress.
    return zooKeeperSaslClient.clientTunneledAuthenticationInProgress();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号