public class SecretString extends Object implements CharSequence, AutoCloseable
| Constructor and Description |
|---|
SecretString(char[] chars) |
SecretString(char[] chars,
int start,
int end) |
SecretString(CharSequence charSequence) |
| Modifier and Type | Method and Description |
|---|---|
char |
charAt(int index) |
void |
clear()
Clear the contents of this SecretString instance by setting each character to 0.
|
void |
close() |
void |
finalize() |
int |
length() |
CharSequence |
subSequence(int start,
int end) |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchars, codePoints, toStringpublic SecretString(CharSequence charSequence)
public SecretString(char[] chars)
public SecretString(char[] chars,
int start,
int end)
public char charAt(int index)
charAt in interface CharSequencepublic void close()
close in interface AutoCloseablepublic int length()
length in interface CharSequencepublic CharSequence subSequence(int start, int end)
subSequence in interface CharSequencepublic void clear()
Copyright © 2019. All rights reserved.