Package com.unboundid.util.ssl.cert
Enum NamedCurve
- All Implemented Interfaces:
Serializable,Comparable<NamedCurve>,java.lang.constant.Constable
This enum defines a set of OIDs that are known to be associated with elliptic
curve keys.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe brainpoolP256r1 curve.The brainpoolP384r1 curve.The brainpoolP512r1 curve.The secP160k1 curve.The secP160r1 curve.The secP160r2 curve.The secP192k1 curve.The secP192r1 curve (also known as nistP192).The secP224k1 curve.The secP224r1 curve (also known as nistP224).The secP256k1 curve.The secP256r1 curve (also known as nistP256).The secP384r1 curve (also known as nistP384).The secP521r1 curve (also known as nistP521).The secT163k1 curve.The secT163r2 curve.The secT233k1 curve.The secT233r1 curve.The secT283k1 curve.The secT283r1 curve.The secT409k1 curve.The secT409r1 curve.The secT571k1 curve.The secT571r1 curve. -
Method Summary
Modifier and TypeMethodDescriptionstatic NamedCurveRetrieves the named curve with the specified name.static NamedCurveRetrieves the named curve value with the specified OID.getName()Retrieves the name for this named curve value.static StringgetNameOrOID(OID oid) Retrieves the name for the named curve value with the provided OID, or a string representation of the OID if there is no value with that OID.getOID()Retrieves the OID for this named curve value.static NamedCurveReturns the enum constant of this type with the specified name.static NamedCurve[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BRAINPOOLP256R1
The brainpoolP256r1 curve. -
BRAINPOOLP384R1
The brainpoolP384r1 curve. -
BRAINPOOLP512R1
The brainpoolP512r1 curve. -
SECP160K1
The secP160k1 curve. -
SECP160R1
The secP160r1 curve. -
SECP160R2
The secP160r2 curve. -
SECP192K1
The secP192k1 curve. -
SECP192R1
The secP192r1 curve (also known as nistP192). -
SECP224K1
The secP224k1 curve. -
SECP224R1
The secP224r1 curve (also known as nistP224). -
SECP256K1
The secP256k1 curve. -
SECP256R1
The secP256r1 curve (also known as nistP256). -
SECP384R1
The secP384r1 curve (also known as nistP384). -
SECP521R1
The secP521r1 curve (also known as nistP521). -
SECT163K1
The secT163k1 curve. -
SECT163R2
The secT163r2 curve. -
SECT233K1
The secT233k1 curve. -
SECT233R1
The secT233r1 curve. -
SECT283K1
The secT283k1 curve. -
SECT283R1
The secT283r1 curve. -
SECT409K1
The secT409k1 curve. -
SECT409R1
The secT409r1 curve. -
SECT571K1
The secT571k1 curve. -
SECT571R1
The secT571r1 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
-
getOID
Retrieves the OID for this named curve value.- Returns:
- The OID for this named curve value.
-
getName
Retrieves the name for this named curve value.- Returns:
- The name for this named curve value.
-
forOID
Retrieves the named curve value with the specified OID.- Parameters:
oid- The OID of the named curve value to retrieve. It must not benull.- Returns:
- The named curve value with the specified OID, or
nullif there is no value with the specified OID.
-
getNameOrOID
Retrieves the name for the named curve value with the provided OID, or a string representation of the OID if there is no value with that OID.- Parameters:
oid- The OID for the named curve to retrieve.- Returns:
- The name for the named curve value with the provided OID, or a string representation of the OID if there is no value with that OID.
-
forName
Retrieves the named curve with the specified name.- Parameters:
name- The name of the named curve to retrieve. It must not benull.- Returns:
- The requested named curve, or
nullif no such curve is defined.
-