|
Knopflerfish OSGi 1.3.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knopflerfish.service.um.useradmin.PasswdUtil
Utility class for one-way encryption of, for example, user passwords.
Constructor Summary | |
PasswdUtil()
|
Method Summary | |
static byte[] |
digest(java.lang.String message,
byte[] salt)
Create a digest from salt and a message. |
static byte[] |
saltAndDigest(java.lang.String message,
byte[] digest)
Create salt and the a digest of the salt and the message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PasswdUtil()
Method Detail |
public static byte[] saltAndDigest(java.lang.String message, byte[] digest)
message
- the message to calculate a digest fordigest
- buffer to write the resulting digest to, must be at least
20 bytes long.
public static byte[] digest(java.lang.String message, byte[] salt)
message
- the message to calculate a digest forsalt
- the salt to use.
|
Knopflerfish OSGi 1.3.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |