本文整理了Java中org.apache.sshd.common.util.buffer.Buffer.putPublicKey()
方法的一些代码示例,展示了Buffer.putPublicKey()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Buffer.putPublicKey()
方法的具体详情如下:
包路径:org.apache.sshd.common.util.buffer.Buffer
类名称:Buffer
方法名:putPublicKey
暂无
代码示例来源:origin: org.apache.sshd/sshd-core
buffer.putBoolean(false);
buffer.putString(algo);
buffer.putPublicKey(key);
session.writePacket(buffer);
return true;
代码示例来源:origin: org.apache.sshd/sshd-osgi
buffer.putBoolean(false);
buffer.putString(algo);
buffer.putPublicKey(key);
session.writePacket(buffer);
return true;
代码示例来源:origin: org.apache.sshd/sshd-core
@Override
public void removeIdentity(PublicKey key) throws IOException {
Buffer buffer = createBuffer(SshAgentConstants.SSH2_AGENTC_REMOVE_IDENTITY);
buffer.putPublicKey(key);
if (log.isDebugEnabled()) {
log.debug("removeIdentity({}) {}", KeyUtils.getKeyType(key), KeyUtils.getFingerPrint(key));
}
buffer = request(prepare(buffer));
int available = buffer.available();
int response = (available >= 1) ? buffer.getUByte() : -1;
if ((available != 1) || (response != SshAgentConstants.SSH_AGENT_SUCCESS)) {
throw new SshException("Bad removeIdentity response (" + SshAgentConstants.getCommandMessageName(response) + ") - available=" + available);
}
}
代码示例来源:origin: org.apache.sshd/sshd-osgi
@Override
public void removeIdentity(PublicKey key) throws IOException {
Buffer buffer = createBuffer(SshAgentConstants.SSH2_AGENTC_REMOVE_IDENTITY);
buffer.putPublicKey(key);
if (log.isDebugEnabled()) {
log.debug("removeIdentity({}) {}", KeyUtils.getKeyType(key), KeyUtils.getFingerPrint(key));
}
buffer = request(prepare(buffer));
int available = buffer.available();
int response = (available >= 1) ? buffer.getUByte() : -1;
if ((available != 1) || (response != SshAgentConstants.SSH_AGENT_SUCCESS)) {
throw new SshException("Bad removeIdentity response (" + SshAgentConstants.getCommandMessageName(response) + ") - available=" + available);
}
}
代码示例来源:origin: org.apache.sshd/sshd-core
bs.putBoolean(true);
bs.putString(algo);
bs.putPublicKey(key);
代码示例来源:origin: org.apache.sshd/sshd-osgi
bs.putBoolean(true);
bs.putString(algo);
bs.putPublicKey(key);
代码示例来源:origin: org.apache.sshd/sshd-osgi
buffer.putString("sign");
buffer.putPublicKey(key);
buffer.putBytes(data);
buffer.putInt(0);
代码示例来源:origin: org.apache.sshd/sshd-core
rep.putInt(keys.size());
for (Map.Entry<PublicKey, String> key : keys) {
rep.putPublicKey(key.getKey());
rep.putString(key.getValue());
代码示例来源:origin: org.apache.sshd/sshd-core
buffer.putString("sign");
buffer.putPublicKey(key);
buffer.putBytes(data);
buffer.putInt(0);
代码示例来源:origin: org.apache.sshd/sshd-core
buf.putString(REQUEST);
buf.putBytes(sessionId);
buf.putPublicKey(k);
代码示例来源:origin: org.apache.sshd/sshd-osgi
rep.putInt(keys.size());
for (Map.Entry<PublicKey, String> key : keys) {
rep.putPublicKey(key.getKey());
rep.putString(key.getValue());
代码示例来源:origin: org.apache.sshd/sshd-osgi
buf.putString(REQUEST);
buf.putBytes(sessionId);
buf.putPublicKey(k);
代码示例来源:origin: org.apache.sshd/sshd-core
buffer.putBoolean(true);
buffer.putString(algo);
buffer.putPublicKey(key);
appendSignature(session, service, name, username, algo, key, buffer);
代码示例来源:origin: org.apache.sshd/sshd-osgi
buffer.putBoolean(true);
buffer.putString(algo);
buffer.putPublicKey(key);
appendSignature(session, service, name, username, algo, key, buffer);
代码示例来源:origin: io.termd/termd-core
String alg = KeyUtils.getKeyType(key);
buffer.putString(alg);
buffer.putPublicKey(key.getPublic());
bs.putBoolean(true);
bs.putString(alg);
bs.putPublicKey(key.getPublic());
verif.update(bs.array(), bs.rpos(), bs.available());
代码示例来源:origin: com.alibaba.middleware/termd-core
String alg = KeyUtils.getKeyType(key);
buffer.putString(alg);
buffer.putPublicKey(key.getPublic());
bs.putBoolean(true);
bs.putString(alg);
bs.putPublicKey(key.getPublic());
verif.update(bs.array(), bs.rpos(), bs.available());
代码示例来源:origin: termd/termd
String alg = KeyUtils.getKeyType(key);
buffer.putString(alg);
buffer.putPublicKey(key.getPublic());
bs.putBoolean(true);
bs.putString(alg);
bs.putPublicKey(key.getPublic());
verif.update(bs.array(), bs.rpos(), bs.available());
代码示例来源:origin: io.termd/termd-core
buffer.putBoolean(true);
buffer.putString(KeyUtils.getKeyType(key));
buffer.putPublicKey(key);
bs.putBoolean(true);
bs.putString(KeyUtils.getKeyType(key));
bs.putPublicKey(key);
代码示例来源:origin: com.alibaba.middleware/termd-core
buffer.putBoolean(true);
buffer.putString(KeyUtils.getKeyType(key));
buffer.putPublicKey(key);
bs.putBoolean(true);
bs.putString(KeyUtils.getKeyType(key));
bs.putPublicKey(key);
代码示例来源:origin: termd/termd
buffer.putBoolean(true);
buffer.putString(KeyUtils.getKeyType(key));
buffer.putPublicKey(key);
bs.putBoolean(true);
bs.putString(KeyUtils.getKeyType(key));
bs.putPublicKey(key);
内容来源于网络,如有侵权,请联系作者删除!