|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.acorn.security.Digester
public abstract class Digester
A static digester for computing encoded hashs.
| Constructor Summary | |
|---|---|
Digester()
|
|
| Method Summary | |
|---|---|
static String |
digest(String algorithm,
String string)
Computes a hash for the given string by applying platform's default encoding and returns the result as a BASE64 or MD5 encoded string depending on the algorithm. |
static String |
digest(String algorithm,
String string,
String encoding)
Computes a hash for the given string by applying the specified encoding and returns the result as a BASE64 or MD5 encoded string depending on the algorithm. |
static String |
digest(String algorithm,
String salt,
String string,
String encoding)
Computes a hash for the given string by using the given salt and by applying the specified encoding and returns the result as a BASE64 or MD5 encoded string depending on the algorithm. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Digester()
| Method Detail |
|---|
public static final String digest(String algorithm,
String string)
throws NoSuchAlgorithmException
algorithm - the digest algorithm.string - the string to use.
NoSuchAlgorithmException - if the algorithm is unknown.
public static final String digest(String algorithm,
String string,
String encoding)
throws NoSuchAlgorithmException
algorithm - the digest algorithm.string - the string to use.encoding - the character encoding.
NoSuchAlgorithmException - if the algorithm is unknown.
public static final String digest(String algorithm,
String salt,
String string,
String encoding)
throws NoSuchAlgorithmException
algorithm - the digest algorithm.salt - the salt to use.string - the string to use.encoding - the character encoding.
NoSuchAlgorithmException - if the algorithm is unknown.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||