|
||||||||||
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 java.lang.String |
bytesToHex(byte[] buff)
|
static byte[] |
digest(java.lang.String id,
java.lang.String secret,
java.lang.String alg)
|
static java.lang.String |
hexDigest(java.lang.String id,
java.lang.String secret,
java.lang.String alg)
This method encodes data using digest algorithm described in JEP-0078 documentation. |
static void |
main(java.lang.String[] args)
Describe main method here. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final java.lang.String hexDigest(java.lang.String id, java.lang.String secret, java.lang.String alg) throws java.security.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.
java.security.NoSuchAlgorithmException
- if an error occurs during encoding
digest message.public static final byte[] digest(java.lang.String id, java.lang.String secret, java.lang.String alg) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
public static final java.lang.String bytesToHex(byte[] buff)
public static void main(java.lang.String[] args) throws java.lang.Exception
main
method here.
args
- a String[]
value
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |