public class Credential
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
bytes
Credential stored as a byte array.
|
| Constructor and Description |
|---|
Credential(byte[] password)
Creates a new credential.
|
Credential(char[] password)
Creates a new credential.
|
Credential(java.lang.String password)
Creates a new credential.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes()
Returns this credential as a byte array.
|
char[] |
getChars()
Returns this credential as a character array.
|
java.lang.String |
getString()
Returns this credential as a string.
|
java.lang.String |
toString() |
public Credential(java.lang.String password)
password - converted from UTF-8 to a byte arraypublic Credential(char[] password)
password - converted from UTF-8 to a byte arraypublic Credential(byte[] password)
password - to storepublic byte[] getBytes()
public java.lang.String getString()
public char[] getChars()
public java.lang.String toString()
toString in class java.lang.Object