Package software.amazon.awssdk.crt.io
Enum TlsHashAlgorithm
- java.lang.Object
-
- java.lang.Enum<TlsHashAlgorithm>
-
- software.amazon.awssdk.crt.io.TlsHashAlgorithm
-
- All Implemented Interfaces:
Serializable
,Comparable<TlsHashAlgorithm>
public enum TlsHashAlgorithm extends Enum<TlsHashAlgorithm>
The hash algorithm of a TLS private key operation. Any custom private key operation handlers are expected to perform operations on the input TLS data using the correct hash algorithm or fail the operation.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TlsHashAlgorithm
getEnumValueFromInteger(int value)
int
getNativeValue()
static TlsHashAlgorithm
valueOf(String name)
Returns the enum constant of this type with the specified name.static TlsHashAlgorithm[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final TlsHashAlgorithm UNKNOWN
-
SHA1
public static final TlsHashAlgorithm SHA1
-
SHA224
public static final TlsHashAlgorithm SHA224
-
SHA256
public static final TlsHashAlgorithm SHA256
-
SHA384
public static final TlsHashAlgorithm SHA384
-
SHA512
public static final TlsHashAlgorithm SHA512
-
-
Method Detail
-
values
public static TlsHashAlgorithm[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TlsHashAlgorithm c : TlsHashAlgorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TlsHashAlgorithm valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getEnumValueFromInteger
public static TlsHashAlgorithm getEnumValueFromInteger(int value)
-
getNativeValue
public int getNativeValue()
-
-