org.apache.sshd.common.util.buffer.Buffer.putAndWipeChars()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(157)

本文整理了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

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);
}

相关文章