public class Credential extends 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(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.
|
String |
getString()
Returns this credential as a string.
|
String |
toString() |
public Credential(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 String getString()
public char[] getChars()
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.