public class DigestAlgorithm extends Object
This class functions similarly to a Java enum, but allows client software to operate with a server that provides enumeration values that aren't known by the client. Client software can use standard enum values with DigestAlgorithm.VALUE, or instantiate extended enum values with DigestAlgorithm.fromValue(VALUE). This class cannot be used with the Java switch() construction.
Modifier and Type | Field and Description |
---|---|
static DigestAlgorithm |
BLAKE2B256 |
static DigestAlgorithm |
BLAKE2B384 |
static DigestAlgorithm |
BLAKE2B512 |
static DigestAlgorithm |
BLAKE2S256 |
static DigestAlgorithm |
RIPEMD160 |
static DigestAlgorithm |
SHA1 |
static DigestAlgorithm |
SHA256 |
static DigestAlgorithm |
SHA3_224 |
static DigestAlgorithm |
SHA3_256 |
static DigestAlgorithm |
SHA3_384 |
static DigestAlgorithm |
SHA3_512 |
static DigestAlgorithm |
SHA384 |
static DigestAlgorithm |
SHA512 |
static DigestAlgorithm |
SSL3 |
static DigestAlgorithm |
STREEBOG256 |
static DigestAlgorithm |
STREEBOG512 |
Modifier and Type | Method and Description |
---|---|
static DigestAlgorithm |
fromValue(String val)
Intantiate an enumeration member from a value.
|
String |
getValue()
Get the serialized value of this enumeration member.
|
String |
toString()
Returns the serialized value of this enumeration member, converted to a
string.
|
static DigestAlgorithm[] |
values()
Return an array containing the known enumeration values.
|
public static final DigestAlgorithm BLAKE2B256
public static final DigestAlgorithm BLAKE2B384
public static final DigestAlgorithm BLAKE2B512
public static final DigestAlgorithm BLAKE2S256
public static final DigestAlgorithm RIPEMD160
public static final DigestAlgorithm SHA1
public static final DigestAlgorithm SHA256
public static final DigestAlgorithm SHA384
public static final DigestAlgorithm SHA512
public static final DigestAlgorithm SHA3_224
public static final DigestAlgorithm SHA3_256
public static final DigestAlgorithm SHA3_384
public static final DigestAlgorithm SHA3_512
public static final DigestAlgorithm SSL3
public static final DigestAlgorithm STREEBOG256
public static final DigestAlgorithm STREEBOG512
public String getValue()
public String toString()
For String enumerations, this will return the same value as getValue(). For integer enumerations, it will return the integer value converted to a string.
public static DigestAlgorithm[] values()
This method returns all enumeration values known at the time the method is invoked. Since the enumeration is extensible, new enumeration values will be added as they are encountered (usually because new enumeration values were returned by the server). This can result in two calls to values() returning arrays of different length.
public static DigestAlgorithm fromValue(String val)
This method is normally invoked internally by the library to deserialize enumeration values. It is not normally necessary to call this method directly in client software. You can use one of the DigestAlgorithm.VALUE members if you want to use a defined enumeration value.
Copyright © 2017-2023 Fortanix Inc. All Rights Reserved