|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.generationjava.security.Securer
Utility class to make it easier to get hashed values.
| Field Summary | |
static Constant |
ADLER
|
static Constant |
CRC
|
static Constant |
HASH
|
static Constant |
UID
|
| Constructor Summary | |
Securer()
Get a Securer for MD5. |
|
Securer(java.lang.String algorithm)
Get a Securer for a particular algorithm. |
|
| Method Summary | |
java.lang.String |
getHash(java.lang.String input)
Get the hash for a string in hexadecimal string form. |
static Securer |
getSecurer(java.lang.Object algorithm)
|
boolean |
hashEquals(java.lang.String hashed,
java.lang.String plain)
See if a hashed value and a plain unhashed value are equal. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static Constant CRC
public static Constant UID
public static Constant ADLER
public static Constant HASH
| Constructor Detail |
public Securer(java.lang.String algorithm)
throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException - if the algorithm does not exist.public Securer()
| Method Detail |
public static Securer getSecurer(java.lang.Object algorithm)
throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmExceptionpublic java.lang.String getHash(java.lang.String input)
input - String to hash
public boolean hashEquals(java.lang.String hashed,
java.lang.String plain)
hashed - String hashed value.plain - String unhashed value.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||