Enum ECCurve

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ECCurve>

    public enum ECCurve
    extends java.lang.Enum<ECCurve>
    Database of common, public elliptic curves. Data taken from jss.pkcs11.PK11KeyPairGenerator, the OpenJDK CurveDB, and djb's SafeCurves webpage.
    • Enum Constant Detail

      • P256

        public static final ECCurve P256
      • P384

        public static final ECCurve P384
      • P521

        public static final ECCurve P521
    • 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 name
        java.lang.NullPointerException - if the argument is null
      • getNames

        public java.lang.String[] getNames()
      • 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()
      • fromName

        public static ECCurve fromName​(java.lang.String name)