java.io.Serializable
, java.lang.Comparable<DigestAlgorithm>
public enum DigestAlgorithm extends java.lang.Enum<DigestAlgorithm>
Modifier and Type | Method | Description |
---|---|---|
static DigestAlgorithm |
forName(java.lang.String name) |
|
java.lang.String |
getAlgorithm() |
|
java.security.MessageDigest |
getMessageDigest() |
|
java.lang.String |
getToken() |
|
boolean |
isSession() |
|
static DigestAlgorithm |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static DigestAlgorithm[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DigestAlgorithm MD5
public static final DigestAlgorithm MD5_SESS
public static DigestAlgorithm[] values()
for (DigestAlgorithm c : DigestAlgorithm.values()) System.out.println(c);
public static DigestAlgorithm valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getToken()
public java.lang.String getAlgorithm()
public boolean isSession()
public java.security.MessageDigest getMessageDigest() throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
public static DigestAlgorithm forName(java.lang.String name)
Copyright © 2018. All rights reserved.