public enum Curve extends Enum<Curve>
| Enum Constant and Description |
|---|
ED25519 |
P224 |
P256 |
P384 |
P521 |
SM2P256V1 |
| Modifier and Type | Method and Description |
|---|---|
static Curve |
fromLabel(int v) |
int |
getLabel() |
String |
toString() |
static Curve |
valueOf(org.bouncycastle.math.ec.ECCurve v) |
static Curve |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Curve[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Curve P224
public static final Curve P256
public static final Curve P384
public static final Curve P521
public static final Curve SM2P256V1
public static final Curve ED25519
public static Curve[] values()
for (Curve c : Curve.values()) System.out.println(c);
public static Curve valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getLabel()
public static Curve valueOf(org.bouncycastle.math.ec.ECCurve v) throws Exception
ExceptionCopyright © 2020. All rights reserved.