@ThreadSafety(level=COMPLETELY_THREADSAFE) public enum NamedCurve extends java.lang.Enum<NamedCurve>
Enum Constant and 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.
|
Modifier and Type | Method and 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.
|
public static final NamedCurve BRAINPOOLP256R1
public static final NamedCurve BRAINPOOLP384R1
public static final NamedCurve BRAINPOOLP512R1
public static final NamedCurve SECP160K1
public static final NamedCurve SECP160R1
public static final NamedCurve SECP160R2
public static final NamedCurve SECP192K1
public static final NamedCurve SECP192R1
public static final NamedCurve SECP224K1
public static final NamedCurve SECP224R1
public static final NamedCurve SECP256K1
public static final NamedCurve SECP256R1
public static final NamedCurve SECP384R1
public static final NamedCurve SECP521R1
public static final NamedCurve SECT163K1
public static final NamedCurve SECT163R2
public static final NamedCurve SECT233K1
public static final NamedCurve SECT233R1
public static final NamedCurve SECT283K1
public static final NamedCurve SECT283R1
public static final NamedCurve SECT409K1
public static final NamedCurve SECT409R1
public static final NamedCurve SECT571K1
public static final NamedCurve SECT571R1
public static NamedCurve[] values()
for (NamedCurve c : NamedCurve.values()) System.out.println(c);
public static NamedCurve valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@NotNull public OID getOID()
@NotNull public java.lang.String getName()
@Nullable public static NamedCurve forOID(@NotNull OID oid)
oid
- The OID of the named curve value to retrieve. It must not be
null
.null
if
there is no value with the specified OID.@NotNull public static java.lang.String getNameOrOID(@NotNull OID oid)
oid
- The OID for the named curve to retrieve.@Nullable public static NamedCurve forName(@NotNull java.lang.String name)
name
- The name of the named curve to retrieve. It must not be
null
.null
if no such curve is
defined.