本文整理了Java中org.apache.sshd.common.util.buffer.Buffer.putAndWipeChars()
方法的一些代码示例,展示了Buffer.putAndWipeChars()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Buffer.putAndWipeChars()
方法的具体详情如下:
包路径:org.apache.sshd.common.util.buffer.Buffer
类名称:Buffer
方法名:putAndWipeChars
[英]Zeroes the input array after having put the characters in the buffer - useful for sensitive information such as passwords
[中]将字符放入缓冲区后,将输入数组归零-对于密码等敏感信息非常有用
代码示例来源:origin: org.apache.sshd/sshd-common
public void putAndWipeChars(char[] chars, int offset, int len) {
putAndWipeChars(chars, offset, len, StandardCharsets.UTF_8);
}
代码示例来源:origin: org.apache.sshd/sshd-osgi
public void putAndWipeChars(char[] chars, int offset, int len) {
putAndWipeChars(chars, offset, len, StandardCharsets.UTF_8);
}
代码示例来源:origin: org.apache.sshd/sshd-osgi
/**
* Zeroes the input array <U>after</U> having put the characters in the
* buffer - useful for sensitive information such as passwords
*
* @param chars The characters to put in the buffer - may be {@code null}/empty
* @see #putAndWipeChars(char[], Charset)
* @see #putChars(char[], Charset)
*/
public void putAndWipeChars(char[] chars) {
putAndWipeChars(chars, 0, GenericUtils.length(chars));
}
代码示例来源:origin: org.apache.sshd/sshd-common
/**
* Zeroes the input array <U>after</U> having put the characters in the
* buffer - useful for sensitive information such as passwords
*
* @param chars The characters to put in the buffer - may be {@code null}/empty
* @see #putAndWipeChars(char[], Charset)
* @see #putChars(char[], Charset)
*/
public void putAndWipeChars(char[] chars) {
putAndWipeChars(chars, 0, GenericUtils.length(chars));
}
代码示例来源:origin: org.apache.sshd/sshd-common
public void putAndWipeChars(char[] chars, Charset charset) {
putAndWipeChars(chars, 0, GenericUtils.length(chars), charset);
}
代码示例来源:origin: org.apache.sshd/sshd-osgi
public void putAndWipeChars(char[] chars, Charset charset) {
putAndWipeChars(chars, 0, GenericUtils.length(chars), charset);
}
内容来源于网络,如有侵权,请联系作者删除!