|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.beepcore.beep.profile.sasl.otp.algorithm.AlgorithmImpl
org.beepcore.beep.profile.sasl.otp.algorithm.md5.MD5
Field Summary | |
static java.lang.String |
MD5_NAME
|
Fields inherited from interface org.beepcore.beep.profile.sasl.otp.algorithm.Algorithm |
ERR_HASH_FAILURE |
Constructor Summary | |
MD5()
|
Method Summary | |
protected byte[] |
foldHash(byte[] hash)
Method foldHash is provided for implementations, as the value of the message digest hash must be folding into 64 bits before it can be used by the SASLOTPProfile and its supporting classes. |
byte[] |
generateHash(byte[] hash)
Method generateHash generate a hash value using the appropriate hash function. |
static java.lang.String |
getAlgorithmName()
|
java.lang.String |
getName()
Method getName |
Methods inherited from class org.beepcore.beep.profile.sasl.otp.algorithm.AlgorithmImpl |
generateHash |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String MD5_NAME
Constructor Detail |
public MD5()
Method Detail |
public java.lang.String getName()
AlgorithmImpl
getName
in interface Algorithm
getName
in class AlgorithmImpl
public static java.lang.String getAlgorithmName()
public byte[] generateHash(byte[] hash) throws InvalidParameterException
AlgorithmImpl
generateHash
in interface Algorithm
generateHash
in class AlgorithmImpl
hash
- The data to be hashed
InvalidParameterException
protected byte[] foldHash(byte[] hash) throws InvalidParameterException
AlgorithmImpl
foldHash
in class AlgorithmImpl
hash
- The hash value to be folded
InvalidParameterException
- of the has provided is
somehow improper or invalid.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |