|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsdsi.util.AlgorithmEnum jsdsi.util.DigestAlgoEnum
Experimental class and as such may be removed without warning.
Enum class for MessageDigest algorythms.
Field Summary | |
static DigestAlgoEnum |
MD2
The MD2 message digest algorithm as defined in RFC 1319. |
static DigestAlgoEnum |
MD5
The MD5 message digest algorithm as defined in RFC 1321. |
static DigestAlgoEnum |
SHA1
The Secure Hash Algorithm, as defined in Secure Hash Standard, NIST FIPS 180-1. |
static DigestAlgoEnum |
SHA256
256-bit hash function intended to provide 128 bits of security against collision attacks. |
static DigestAlgoEnum |
SHA384
384 byte SHA |
static DigestAlgoEnum |
SHA512
512-bit hash function intended to provide 256 bits of security. |
Constructor Summary | |
protected |
DigestAlgoEnum(java.lang.String jdkName,
java.lang.String spkiName)
|
protected |
DigestAlgoEnum(java.lang.String jdkName,
java.lang.String spkiName,
java.lang.String jdkSigName)
|
Method Summary | |
static DigestAlgoEnum |
fromJdk(java.lang.String jdkName)
Given a JDK name for a MessageDigest algorythm, return its DigestAlgoEnum |
static DigestAlgoEnum |
fromJdkSignature(java.lang.String jdkName)
Given a name for a MessageDigest algorythm from a JDK Signature, return its DigestAlgoEnum |
static DigestAlgoEnum |
fromSpki(java.lang.String spkiName)
Given a SPKI name for a MessageDigest algorythm, return its DigestAlgoEnum |
java.lang.String |
jdkSignatureName()
Returns the name of this digest when part of a JDK Signature algorythm |
Methods inherited from class jsdsi.util.AlgorithmEnum |
equals, hashCode, jdkName, spkiName, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final DigestAlgoEnum MD2
public static final DigestAlgoEnum MD5
public static final DigestAlgoEnum SHA1
public static final DigestAlgoEnum SHA256
public static final DigestAlgoEnum SHA384
public static final DigestAlgoEnum SHA512
Constructor Detail |
protected DigestAlgoEnum(java.lang.String jdkName, java.lang.String spkiName)
jdkName
- spkiName
- protected DigestAlgoEnum(java.lang.String jdkName, java.lang.String spkiName, java.lang.String jdkSigName)
jdkName
- spkiName
- Method Detail |
public static DigestAlgoEnum fromJdk(java.lang.String jdkName)
jdkName
- JDK name
public static DigestAlgoEnum fromJdkSignature(java.lang.String jdkName)
jdkName
- JDK name
JsdsiRuntimeException
- on errorpublic static DigestAlgoEnum fromSpki(java.lang.String spkiName)
spkiName
- SPKI name
JsdsiRuntimeException
- on errorpublic java.lang.String jdkSignatureName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |