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 BigIntegerprivate BigIntegerprivate intprivate ECFieldprivate BigIntegerprivate BigIntegerprivate String[]private OBJECT_IDENTIFIER[]private BigIntegerprivate int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateECCurve(String[] names, OBJECT_IDENTIFIER[] oids, ECField field, BigInteger a, BigInteger b, BigInteger generatorX, BigInteger generatorY, BigInteger order, int cofactor, int pointSize) privateECCurve(String[] names, OBJECT_IDENTIFIER[] oids, ECField field, BigInteger a, BigInteger b, ECPoint generator, BigInteger order, int cofactor, int pointSize) -
Method Summary
Modifier and TypeMethodDescriptionstatic ECCurvestatic ECCurvefromOID(OBJECT_IDENTIFIER oid) static ECCurvefromOrder(BigInteger order) getA()getB()intgetEC()getField()String[]getNames()getOIDs()getOrder()intstatic ECCurveReturns 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 -
pointSize
private int pointSize
-
-
Constructor Details
-
ECCurve
private ECCurve(String[] names, OBJECT_IDENTIFIER[] oids, ECField field, BigInteger a, BigInteger b, ECPoint generator, BigInteger order, int cofactor, int pointSize) -
ECCurve
private ECCurve(String[] names, OBJECT_IDENTIFIER[] oids, ECField field, BigInteger a, BigInteger b, BigInteger generatorX, BigInteger generatorY, BigInteger order, int cofactor, int pointSize)
-
-
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() -
getPointSize
public int getPointSize() -
fromOID
-
fromName
-
fromOrder
-