|
Spring Security Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.security.util.Sha512DigestUtils
public abstract class Sha512DigestUtils
Provides SHA512 digest methods.
Based on Commons Codec, which does not presently provide SHA512 support.
| Constructor Summary | |
|---|---|
Sha512DigestUtils()
|
|
| Method Summary | |
|---|---|
static byte[] |
sha(byte[] data)
Calculates the SHA digest and returns the value as a byte[]. |
static byte[] |
sha(String data)
Calculates the SHA digest and returns the value as a byte[]. |
static String |
shaHex(byte[] data)
Calculates the SHA digest and returns the value as a hex string. |
static String |
shaHex(String data)
Calculates the SHA digest and returns the value as a hex string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Sha512DigestUtils()
| Method Detail |
|---|
public static byte[] sha(byte[] data)
byte[].
data - Data to digest
public static byte[] sha(String data)
byte[].
data - Data to digest
public static String shaHex(byte[] data)
data - Data to digest
public static String shaHex(String data)
data - Data to digest
|
Spring Security Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||