org.apache.zookeeper.client.ZooKeeperSaslClient.sendSaslPacket()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(89)

本文整理了Java中org.apache.zookeeper.client.ZooKeeperSaslClient.sendSaslPacket()方法的一些代码示例,展示了ZooKeeperSaslClient.sendSaslPacket()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZooKeeperSaslClient.sendSaslPacket()方法的具体详情如下:
包路径:org.apache.zookeeper.client.ZooKeeperSaslClient
类名称:ZooKeeperSaslClient
方法名:sendSaslPacket

ZooKeeperSaslClient.sendSaslPacket介绍

暂无

代码示例

代码示例来源:origin: apache/zookeeper

public void initialize(ClientCnxn cnxn) throws SaslException {
  if (saslClient == null) {
    saslState = SaslState.FAILED;
    throw new SaslException("saslClient failed to initialize properly: it's null.");
  }
  if (saslState == SaslState.INITIAL) {
    if (saslClient.hasInitialResponse()) {
      sendSaslPacket(cnxn);
    }
    else {
      byte[] emptyToken = new byte[0];
      sendSaslPacket(emptyToken, cnxn);
    }
    saslState = SaslState.INTERMEDIATE;
  }
}

代码示例来源:origin: org.apache.zookeeper/zookeeper

public void initialize(ClientCnxn cnxn) throws SaslException {
  if (saslClient == null) {
    saslState = SaslState.FAILED;
    throw new SaslException("saslClient failed to initialize properly: it's null.");
  }
  if (saslState == SaslState.INITIAL) {
    if (saslClient.hasInitialResponse()) {
      sendSaslPacket(cnxn);
    }
    else {
      byte[] emptyToken = new byte[0];
      sendSaslPacket(emptyToken, cnxn);
    }
    saslState = SaslState.INTERMEDIATE;
  }
}

代码示例来源:origin: apache/zookeeper

saslToken = createSaslToken(serverToken);
if (saslToken != null) {
  sendSaslPacket(saslToken, cnxn);

代码示例来源:origin: org.apache.zookeeper/zookeeper

saslToken = createSaslToken(serverToken);
if (saslToken != null) {
  sendSaslPacket(saslToken, cnxn);

代码示例来源:origin: io.fabric8/fabric-zookeeper

public void initialize(ClientCnxn cnxn) throws SaslException {
  if (saslClient == null) {
    saslState = SaslState.FAILED;
    throw new SaslException("saslClient failed to initialize properly: it's null.");
  }
  if (saslState == SaslState.INITIAL) {
    if (saslClient.hasInitialResponse()) {
      sendSaslPacket(cnxn);
    }
    else {
      byte[] emptyToken = new byte[0];
      sendSaslPacket(emptyToken, cnxn);
    }
    saslState = SaslState.INTERMEDIATE;
  }
}

代码示例来源:origin: jboss-fuse/fabric8

public void initialize(ClientCnxn cnxn) throws SaslException {
  if (saslClient == null) {
    saslState = SaslState.FAILED;
    throw new SaslException("saslClient failed to initialize properly: it's null.");
  }
  if (saslState == SaslState.INITIAL) {
    if (saslClient.hasInitialResponse()) {
      sendSaslPacket(cnxn);
    }
    else {
      byte[] emptyToken = new byte[0];
      sendSaslPacket(emptyToken, cnxn);
    }
    saslState = SaslState.INTERMEDIATE;
  }
}

代码示例来源:origin: io.fabric8/fabric-zookeeper

saslToken = createSaslToken(serverToken);
if (saslToken != null) {
  sendSaslPacket(saslToken, cnxn);

代码示例来源:origin: jboss-fuse/fabric8

saslToken = createSaslToken(serverToken);
if (saslToken != null) {
  sendSaslPacket(saslToken, cnxn);

相关文章