Package org.mozilla.jss.util
Enum ECCurve
- java.lang.Object
-
- java.lang.Enum<ECCurve>
-
- org.mozilla.jss.util.ECCurve
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ECCurve
fromName(java.lang.String name)
static ECCurve
fromOID(OBJECT_IDENTIFIER oid)
java.math.BigInteger
getA()
java.math.BigInteger
getB()
int
getCofactor()
java.security.spec.EllipticCurve
getEC()
java.security.spec.ECParameterSpec
getECParameterSpec()
java.security.spec.ECField
getField()
java.security.spec.ECPoint
getGenerator()
java.math.BigInteger
getGeneratorX()
java.math.BigInteger
getGeneratorY()
java.lang.String[]
getNames()
OBJECT_IDENTIFIER[]
getOIDs()
java.math.BigInteger
getOrder()
static ECCurve
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ECCurve[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static ECCurve[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ECCurve c : ECCurve.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ECCurve valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getNames
public java.lang.String[] getNames()
-
getOIDs
public OBJECT_IDENTIFIER[] getOIDs()
-
getField
public java.security.spec.ECField getField()
-
getA
public java.math.BigInteger getA()
-
getB
public java.math.BigInteger getB()
-
getEC
public java.security.spec.EllipticCurve getEC()
-
getGeneratorX
public java.math.BigInteger getGeneratorX()
-
getGeneratorY
public java.math.BigInteger getGeneratorY()
-
getGenerator
public java.security.spec.ECPoint getGenerator()
-
getOrder
public java.math.BigInteger getOrder()
-
getECParameterSpec
public java.security.spec.ECParameterSpec getECParameterSpec()
-
getCofactor
public int getCofactor()
-
fromOID
public static ECCurve fromOID(OBJECT_IDENTIFIER oid)
-
fromName
public static ECCurve fromName(java.lang.String name)
-
-