public enum MidHashType extends Enum<MidHashType>
| Modifier and Type | Method and Description |
|---|---|
byte[] |
calculateDigest(byte[] dataToDigest) |
String |
getAlgorithmName() |
byte[] |
getDigestInfoPrefix() |
String |
getHashTypeName() |
int |
getLengthInBytes() |
static MidHashType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MidHashType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MidHashType SHA256
public static final MidHashType SHA384
public static final MidHashType SHA512
public static MidHashType[] values()
for (MidHashType c : MidHashType.values()) System.out.println(c);
public static MidHashType 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 getAlgorithmName()
public String getHashTypeName()
public int getLengthInBytes()
public byte[] getDigestInfoPrefix()
public byte[] calculateDigest(byte[] dataToDigest)
Copyright © 2019. All rights reserved.