public class EllipticCurve extends Object
This class functions similarly to a Java enum, but allows client software to operate with a server that provides enumeration values that aren't known by the client. Client software can use standard enum values with EllipticCurve.VALUE, or instantiate extended enum values with EllipticCurve.fromValue(VALUE). This class cannot be used with the Java switch() construction.
Modifier and Type | Field and Description |
---|---|
static EllipticCurve |
ED25519 |
static EllipticCurve |
GOST256A |
static EllipticCurve |
NISTP192 |
static EllipticCurve |
NISTP224 |
static EllipticCurve |
NISTP256 |
static EllipticCurve |
NISTP384 |
static EllipticCurve |
NISTP521 |
static EllipticCurve |
SECP192K1 |
static EllipticCurve |
SECP224K1 |
static EllipticCurve |
SECP256K1 |
static EllipticCurve |
X25519 |
static EllipticCurve |
X448 |
Modifier and Type | Method and Description |
---|---|
static EllipticCurve |
fromValue(String val)
Intantiate an enumeration member from a value.
|
String |
getValue()
Get the serialized value of this enumeration member.
|
String |
toString()
Returns the serialized value of this enumeration member, converted to a
string.
|
static EllipticCurve[] |
values()
Return an array containing the known enumeration values.
|
public static final EllipticCurve SECP192K1
public static final EllipticCurve SECP224K1
public static final EllipticCurve SECP256K1
public static final EllipticCurve NISTP192
public static final EllipticCurve NISTP224
public static final EllipticCurve NISTP256
public static final EllipticCurve NISTP384
public static final EllipticCurve NISTP521
public static final EllipticCurve GOST256A
public static final EllipticCurve ED25519
public static final EllipticCurve X25519
public static final EllipticCurve X448
public String getValue()
public String toString()
For String enumerations, this will return the same value as getValue(). For integer enumerations, it will return the integer value converted to a string.
public static EllipticCurve[] values()
This method returns all enumeration values known at the time the method is invoked. Since the enumeration is extensible, new enumeration values will be added as they are encountered (usually because new enumeration values were returned by the server). This can result in two calls to values() returning arrays of different length.
public static EllipticCurve fromValue(String val)
This method is normally invoked internally by the library to deserialize enumeration values. It is not normally necessary to call this method directly in client software. You can use one of the EllipticCurve.VALUE members if you want to use a defined enumeration value.
Copyright © 2017-2023 Fortanix Inc. All Rights Reserved