|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.util.Algorithms
public class Algorithms
Describe class Algorithms here. Created: Wed May 4 13:24:03 2005
| Method Summary | |
|---|---|
static void |
$main(String[] args)
Describe main method here. |
static String |
bytesToHex(byte[] buff)
|
static byte[] |
digest(String id,
String secret,
String alg)
|
static String |
hexDigest(String id,
String secret,
String alg)
This method encodes data using digest algorithm described in JEP-0078 documentation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static final String hexDigest(String id,
String secret,
String alg)
throws NoSuchAlgorithmException
String containing digest data which
can be compared with data sent by the user to authenticate him.
id - a String value of some ID value like session ID to
concatenate with secret word.secret - a String value of a secret word shared between
entites.alg - a String value of algorithm name to use for
generating diffest message.
String value digest message as defined.
NoSuchAlgorithmException - if an error occurs during encoding
digest message.
public static final byte[] digest(String id,
String secret,
String alg)
throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionpublic static final String bytesToHex(byte[] buff)
public static void $main(String[] args)
throws Exception
main method here.
args - a String[] value
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||