Package org.appng.core.security
Class DigestUtil
- java.lang.Object
-
- org.appng.core.security.DigestUtil
-
public class DigestUtil extends Object
Utility class to generate a digest of the form<user>|<yyyyMMddHHmmss>|<utc-offset>|<hash>
.
Example:
admin|20160114120555|+01:00|1D87C8A5E738BD3015AC57F2D9B862A5
The<hash>
is a MD5 hash of<user>|<timestamp>|<utc-offset>|<shared-secret>
, where<shared-secret>
comes from the platform property "sharedSecret".- Author:
- Matthias Herlitzius, Matthias Müller
- See Also:
DigestValidator
-
-
Constructor Summary
Constructors Constructor Description DigestUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getDigest(String username, String sharedSecret)
Creates and returns a digest.
-