Enum Class EllipticCurveType

java.lang.Object
java.lang.Enum<EllipticCurveType>
net.messagevortex.asn1.encryption.EllipticCurveType
All Implemented Interfaces:
Serializable, Comparable<EllipticCurveType>, Constable

public enum EllipticCurveType extends Enum<EllipticCurveType>

Represents all supported EC named curves.

  • Enum Constant Details

  • Method Details

    • values

      public static EllipticCurveType[] 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

      public static EllipticCurveType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getById

      public static EllipticCurveType getById(int id)

      Gets en elliptic curve by id.

      Parameters:
      id - the id to look up
      Returns:
      the enum or null if not found
    • getByKeySize

      public static EllipticCurveType[] getByKeySize(int ks)

      Gets en elliptic curve by keySize.

      Parameters:
      ks - the keysize to look up
      Returns:
      an array of suitable enums
    • getByString

      public static EllipticCurveType getByString(String s)

      Gets en elliptic enum curve by name.

      Parameters:
      s - the name to look up
      Returns:
      the enum or null if not found
    • getId

      public int getId()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<EllipticCurveType>
    • getSecurityLevel

      public SecurityLevel getSecurityLevel()
    • getKeySize

      public int getKeySize()
    • getDefault

      public static EllipticCurveType getDefault()