Package com.unboundid.util.ssl.cert
Enum NamedCurve
- java.lang.Object
-
- java.lang.Enum<NamedCurve>
-
- com.unboundid.util.ssl.cert.NamedCurve
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NamedCurve>
@ThreadSafety(level=COMPLETELY_THREADSAFE) public enum NamedCurve extends java.lang.Enum<NamedCurve>
This enum defines a set of OIDs that are known to be associated with elliptic curve keys.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NamedCurve
forName(java.lang.String name)
Retrieves the named curve with the specified name.static NamedCurve
forOID(OID oid)
Retrieves the named curve value with the specified OID.java.lang.String
getName()
Retrieves the name for this named curve value.static java.lang.String
getNameOrOID(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.OID
getOID()
Retrieves the OID for this named curve value.static NamedCurve
valueOf(java.lang.String name)
Returns 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 Detail
-
BRAINPOOLP256R1
public static final NamedCurve BRAINPOOLP256R1
The brainpoolP256r1 curve.
-
BRAINPOOLP384R1
public static final NamedCurve BRAINPOOLP384R1
The brainpoolP384r1 curve.
-
BRAINPOOLP512R1
public static final NamedCurve BRAINPOOLP512R1
The brainpoolP512r1 curve.
-
SECP160K1
public static final NamedCurve SECP160K1
The secP160k1 curve.
-
SECP160R1
public static final NamedCurve SECP160R1
The secP160r1 curve.
-
SECP160R2
public static final NamedCurve SECP160R2
The secP160r2 curve.
-
SECP192K1
public static final NamedCurve SECP192K1
The secP192k1 curve.
-
SECP192R1
public static final NamedCurve SECP192R1
The secP192r1 curve (also known as nistP192).
-
SECP224K1
public static final NamedCurve SECP224K1
The secP224k1 curve.
-
SECP224R1
public static final NamedCurve SECP224R1
The secP224r1 curve (also known as nistP224).
-
SECP256K1
public static final NamedCurve SECP256K1
The secP256k1 curve.
-
SECP256R1
public static final NamedCurve SECP256R1
The secP256r1 curve (also known as nistP256).
-
SECP384R1
public static final NamedCurve SECP384R1
The secP384r1 curve (also known as nistP384).
-
SECP521R1
public static final NamedCurve SECP521R1
The secP521r1 curve (also known as nistP521).
-
SECT163K1
public static final NamedCurve SECT163K1
The secT163k1 curve.
-
SECT163R2
public static final NamedCurve SECT163R2
The secT163r2 curve.
-
SECT233K1
public static final NamedCurve SECT233K1
The secT233k1 curve.
-
SECT233R1
public static final NamedCurve SECT233R1
The secT233r1 curve.
-
SECT283K1
public static final NamedCurve SECT283K1
The secT283k1 curve.
-
SECT283R1
public static final NamedCurve SECT283R1
The secT283r1 curve.
-
SECT409K1
public static final NamedCurve SECT409K1
The secT409k1 curve.
-
SECT409R1
public static final NamedCurve SECT409R1
The secT409r1 curve.
-
SECT571K1
public static final NamedCurve SECT571K1
The secT571k1 curve.
-
SECT571R1
public static final NamedCurve SECT571R1
The secT571r1 curve.
-
-
Method Detail
-
values
public static NamedCurve[] 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 (NamedCurve c : NamedCurve.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NamedCurve valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getOID
public OID getOID()
Retrieves the OID for this named curve value.- Returns:
- The OID for this named curve value.
-
getName
public java.lang.String getName()
Retrieves the name for this named curve value.- Returns:
- The name for this named curve value.
-
forOID
public static NamedCurve forOID(OID oid)
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
null
if there is no value with the specified OID.
-
getNameOrOID
public static java.lang.String getNameOrOID(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.- 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
public static NamedCurve forName(java.lang.String name)
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
null
if no such curve is defined.
-
-