本文整理了Java中org.apache.sshd.common.util.buffer.Buffer.putAndWipeBytes()
方法的一些代码示例,展示了Buffer.putAndWipeBytes()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Buffer.putAndWipeBytes()
方法的具体详情如下:
包路径:org.apache.sshd.common.util.buffer.Buffer
类名称:Buffer
方法名:putAndWipeBytes
[英]Adds the bytes to the buffer and wipes the data from the input buffer after having added it - useful for sensitive information such as password
[中]将字节添加到缓冲区,并在添加数据后清除输入缓冲区中的数据-对于密码等敏感信息非常有用
代码示例来源:origin: org.apache.sshd/sshd-common
/**
* Adds the bytes to the buffer and wipes the data from the
* input buffer <U>after</U> having added it - useful for sensitive
* information such as password
*
* @param b The buffer to add - OK if {@code null}
*/
public void putAndWipeBytes(byte[] b) {
putAndWipeBytes(b, 0, NumberUtils.length(b));
}
代码示例来源:origin: org.apache.sshd/sshd-osgi
/**
* Adds the bytes to the buffer and wipes the data from the
* input buffer <U>after</U> having added it - useful for sensitive
* information such as password
*
* @param b The buffer to add - OK if {@code null}
*/
public void putAndWipeBytes(byte[] b) {
putAndWipeBytes(b, 0, NumberUtils.length(b));
}
内容来源于网络,如有侵权,请联系作者删除!