Package software.amazon.awssdk.crt.cal
Enum EccKeyPair.AwsEccCurve
- All Implemented Interfaces:
Serializable
,Comparable<EccKeyPair.AwsEccCurve>
- Enclosing class:
- EccKeyPair
Enum for supported ECC curves
Needs to stay in sync with aws_ecc_curve_name
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNist standard P256 elliptic curveNist standard P384 elliptic curve -
Method Summary
Modifier and TypeMethodDescriptionstatic EccKeyPair.AwsEccCurve
getEnumValueFromInteger
(int value) Creates a Java enum value from a native enum value as an integerint
Gets the native enum value as an integer that is associated with this Java enum valuestatic EccKeyPair.AwsEccCurve
Returns the enum constant of this type with the specified name.static EccKeyPair.AwsEccCurve[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AWS_ECDSA_P256
Nist standard P256 elliptic curve -
AWS_ECDSA_P384
Nist standard P384 elliptic curve
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getNativeValue
public int getNativeValue()Gets the native enum value as an integer that is associated with this Java enum value- Returns:
- this value's associated native enum value
-
getEnumValueFromInteger
Creates a Java enum value from a native enum value as an integer- Parameters:
value
- native enum value- Returns:
- the corresponding Java enum value
-