|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.util.PasswordUtils
public class PasswordUtils
Utility methods for dealing with passwords.
| Method Summary | |
|---|---|
static char[] |
decodePassword(String s)
Decodes a password from Base64 |
static String |
digestPassword(char[] password)
Computes an encoded digest for a password |
static String |
encodePassword(char[] password)
Encodes a password using Base64 |
static String |
generateToken(int nChars)
Generates an arbitrary token with nChars character length. |
static boolean |
isBlankPassword(String encodedPassword)
Is the password blank ? |
static void |
main(String[] args)
Program used to compute the digests of all password that are given on command line. |
static byte[] |
passwordToBytes(char[] password)
Converts a character password to a byte password using utf8 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static char[] decodePassword(String s)
s - Encoded password
public static String digestPassword(char[] password)
password - Password to encode
public static String encodePassword(char[] password)
password - Password to encode
public static String generateToken(int nChars)
nChars character length.
nChars - Number of characters to generate
public static boolean isBlankPassword(String encodedPassword)
encodedPassword - Encoded form of the password
true if the underlying password is blank.public static void main(String[] args)
args - List of passwords.public static byte[] passwordToBytes(char[] password)
password - Password to convert
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||