|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.Credential
public class Credential
Provides convenience methods for converting the various types of passwords into a byte array.
| Constructor Summary | |
|---|---|
Credential(byte[] password)
Creates a new credential. |
|
Credential(char[] password)
Creates a new credential. |
|
Credential(String password)
Creates a new credential. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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 store| Method Detail |
|---|
public byte[] getBytes()
public String getString()
public char[] getChars()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||