public enum EllipticCurveType extends Enum<EllipticCurveType>
Represents all supported EC named curves.
Modifier and Type | Method and Description |
---|---|
static EllipticCurveType |
getById(int id)
Gets en elliptic curve by id.
|
static EllipticCurveType[] |
getByKeySize(int ks)
Gets en elliptic curve by keySize.
|
static EllipticCurveType |
getByString(String s)
Gets en elliptic enum curve by name.
|
static EllipticCurveType |
getDefault() |
int |
getId() |
int |
getKeySize() |
SecurityLevel |
getSecurityLevel() |
String |
toString() |
static EllipticCurveType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EllipticCurveType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EllipticCurveType SECP384R1
public static final EllipticCurveType SECT409K1
public static final EllipticCurveType SECP521R1
public static EllipticCurveType[] values()
for (EllipticCurveType c : EllipticCurveType.values()) System.out.println(c);
public static EllipticCurveType 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 static EllipticCurveType getById(int id)
Gets en elliptic curve by id.
id
- the id to look uppublic static EllipticCurveType[] getByKeySize(int ks)
Gets en elliptic curve by keySize.
ks
- the keysize to look uppublic static EllipticCurveType getByString(String s)
Gets en elliptic enum curve by name.
s
- the name to look uppublic int getId()
public String toString()
toString
in class Enum<EllipticCurveType>
public SecurityLevel getSecurityLevel()
public int getKeySize()
public static EllipticCurveType getDefault()
Copyright © 2023. All rights reserved.