|
ModeShape Distribution 3.2.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SecureHash.Algorithm>
org.modeshape.common.util.SecureHash.Algorithm
@Immutable public static enum SecureHash.Algorithm
Commonly-used hashing algorithms.
Enum Constant Summary | |
---|---|
MD2
|
|
MD5
|
|
SHA_1
|
|
SHA_256
|
|
SHA_384
|
|
SHA_512
|
Method Summary | |
---|---|
String |
description()
|
String |
digestName()
|
int |
getHexadecimalStringLength()
Get the length of the hexadecimal representation. |
int |
getNumberOfBits()
Get the number of bits that make up a digest. |
int |
getNumberOfBytes()
Get the length of the hexadecimal representation. |
String |
toString()
|
static SecureHash.Algorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static SecureHash.Algorithm[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final SecureHash.Algorithm MD2
public static final SecureHash.Algorithm MD5
public static final SecureHash.Algorithm SHA_1
public static final SecureHash.Algorithm SHA_256
public static final SecureHash.Algorithm SHA_384
public static final SecureHash.Algorithm SHA_512
Method Detail |
---|
public static SecureHash.Algorithm[] values()
for (SecureHash.Algorithm c : SecureHash.Algorithm.values()) System.out.println(c);
public static SecureHash.Algorithm valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String digestName()
public String description()
public int getHexadecimalStringLength()
public int getNumberOfBytes()
public int getNumberOfBits()
public String toString()
toString
in class Enum<SecureHash.Algorithm>
|
ModeShape Distribution 3.2.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |