|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.intarsys.tools.authenticate.PasswordTools
public class PasswordTools
A tool class for handling passwords and authentication
| Constructor Summary | |
|---|---|
PasswordTools()
|
|
| Method Summary | |
|---|---|
static char[] |
createPassword(int length)
Create a random password of length length. |
static String |
createSalt(int length)
Create a random salt of length length. |
static String |
hash(String salt,
char[] password)
A one way hash for a clear text password. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PasswordTools()
| Method Detail |
|---|
public static char[] createPassword(int length)
length.
length -
public static String createSalt(int length)
length. The result is a
String representing the Base64 encoded bytes.
length -
public static String hash(String salt,
char[] password)
salt - A Base64 encoded salt value.password - The clear text password
|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||