public enum DigestChoice extends Enum<DigestChoice>
| Enum Constant and Description |
|---|
SHA1
SHA-1 digest.
|
SHA256
SHA-256 digest.
|
SHA384
SHA-384 digest.
|
SHA512
SHA-512 digest.
|
| Modifier and Type | Field and Description |
|---|---|
private String |
digestAlgorithm
Digest algorithm.
|
private String |
ecdsaAlgorithm
ECDSA signature algorithm.
|
private String |
otherName
Other name (with hyphens, etc.) used as an alternative to the enum name.
|
private String |
rsaAlgorithm
RSA signature algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
static DigestChoice |
find(String name)
Finds the
DigestChoice for a given digest name. |
String |
getDigestAlgorithm()
Returns the digest algorithm URI for this digest choice.
|
String |
getECDSAAlgorithm()
Returns the ECDSA signature algorithm URI for this digest choice.
|
String |
getRSAAlgorithm()
Returns the RSA signature algorithm URI for this digest choice.
|
boolean |
hasName(String name)
Indicates whether the enum can be called by the provided name.
|
static DigestChoice |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DigestChoice[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DigestChoice SHA1
public static final DigestChoice SHA256
public static final DigestChoice SHA384
public static final DigestChoice SHA512
private final String otherName
private final String digestAlgorithm
private final String rsaAlgorithm
private final String ecdsaAlgorithm
public static DigestChoice[] values()
for (DigestChoice c : DigestChoice.values()) System.out.println(c);
public static DigestChoice valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getDigestAlgorithm()
public String getRSAAlgorithm()
public String getECDSAAlgorithm()
public boolean hasName(String name)
name - name to check againsttrue if and only if the enum can be called by the provided namepublic static DigestChoice find(String name)
DigestChoice for a given digest name.name - name of the digest to be foundDigestChoice represented by the nameCopyright © 2011–2016. All rights reserved.