Modifier and Type | Method and 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.
|
public static final ECCurve P256
public static final ECCurve P384
public static final ECCurve P521
public static ECCurve[] values()
for (ECCurve c : ECCurve.values()) System.out.println(c);
public static ECCurve valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String[] getNames()
public OBJECT_IDENTIFIER[] getOIDs()
public java.security.spec.ECField getField()
public java.math.BigInteger getA()
public java.math.BigInteger getB()
public java.security.spec.EllipticCurve getEC()
public java.math.BigInteger getGeneratorX()
public java.math.BigInteger getGeneratorY()
public java.security.spec.ECPoint getGenerator()
public java.math.BigInteger getOrder()
public java.security.spec.ECParameterSpec getECParameterSpec()
public int getCofactor()
public static ECCurve fromOID(OBJECT_IDENTIFIER oid)
public static ECCurve fromName(java.lang.String name)