public enum DigestAlgorithm extends Enum<DigestAlgorithm>
| Enum Constant and Description |
|---|
MD5 |
SHA1 |
SHA1WITHRSA |
SHA256 |
SHA256WITHRSA |
SHA384 |
SHA384WITHRSA |
SHA512 |
SHA512WITHRSA |
| Modifier and Type | Method and Description |
|---|---|
static DigestAlgorithm |
fromOID(String OID,
DigestAlgorithm defaultAlgorithm)
Gets the digest algorithm from an OID.
|
static DigestAlgorithm |
fromString(String algorithmName,
DigestAlgorithm defaultAlgorithm)
Gets the digest algorithm from an algorithm name
|
String |
getAlgName()
Gets the name of the digest algorithm.
|
String |
getOID()
Gets the OID of the digest algorithm.
|
static DigestAlgorithm |
valueOf(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 SHA1
public static final DigestAlgorithm SHA256
public static final DigestAlgorithm SHA384
public static final DigestAlgorithm SHA512
public static final DigestAlgorithm SHA1WITHRSA
public static final DigestAlgorithm SHA256WITHRSA
public static final DigestAlgorithm SHA384WITHRSA
public static final DigestAlgorithm SHA512WITHRSA
public static DigestAlgorithm[] values()
for (DigestAlgorithm c : DigestAlgorithm.values()) System.out.println(c);
public static DigestAlgorithm 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 static DigestAlgorithm fromString(String algorithmName, DigestAlgorithm defaultAlgorithm)
algorithmNam - The digest algorithm namedefaultAlgorithm - The default algorithm to return is a corresponding name cannot be foundpublic static DigestAlgorithm fromOID(String OID, DigestAlgorithm defaultAlgorithm)
OID - The OID of the digest algorithmdefaultAlgorithm - The default algorithm to return is a corresponding OID cannot be foundpublic String getOID()
public String getAlgName()
Copyright © 2010–2020 NHIN Direct. All rights reserved.