Package org.mozilla.jss.util
Enum Class ECCurve
- All Implemented Interfaces:
Serializable
,Comparable<ECCurve>
,Constable
Database of common, public elliptic curves.
Data taken from jss.pkcs11.PK11KeyPairGenerator, the OpenJDK CurveDB,
and djb's SafeCurves webpage.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BigInteger
private BigInteger
private int
private ECField
private BigInteger
private BigInteger
private String[]
private OBJECT_IDENTIFIER[]
private BigInteger
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ECCurve
(String[] names, OBJECT_IDENTIFIER[] oids, ECField field, BigInteger a, BigInteger b, BigInteger generatorX, BigInteger generatorY, BigInteger order, int cofactor) private
ECCurve
(String[] names, OBJECT_IDENTIFIER[] oids, ECField field, BigInteger a, BigInteger b, ECPoint generator, BigInteger order, int cofactor) -
Method Summary
Modifier and TypeMethodDescriptionstatic ECCurve
static ECCurve
fromOID
(OBJECT_IDENTIFIER oid) getA()
getB()
int
getEC()
getField()
String[]
getNames()
getOIDs()
getOrder()
static ECCurve
Returns the enum constant of this class with the specified name.static ECCurve[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
P256
-
P384
-
P521
-
-
Field Details
-
names
-
oids
-
field
-
a
-
b
-
generatorX
-
generatorY
-
order
-
cofactor
private int cofactor
-
-
Constructor Details
-
ECCurve
private ECCurve(String[] names, OBJECT_IDENTIFIER[] oids, ECField field, BigInteger a, BigInteger b, ECPoint generator, BigInteger order, int cofactor) -
ECCurve
private ECCurve(String[] names, OBJECT_IDENTIFIER[] oids, ECField field, BigInteger a, BigInteger b, BigInteger generatorX, BigInteger generatorY, BigInteger order, int cofactor)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getNames
-
getOIDs
-
getField
-
getA
-
getB
-
getEC
-
getGeneratorX
-
getGeneratorY
-
getGenerator
-
getOrder
-
getECParameterSpec
-
getCofactor
public int getCofactor() -
fromOID
-
fromName
-