Enum ECDSACurve

java.lang.Object
java.lang.Enum<ECDSACurve>
net.schmizz.sshj.common.ECDSACurve
All Implemented Interfaces:
Serializable, Comparable<ECDSACurve>, java.lang.constant.Constable

public enum ECDSACurve extends Enum<ECDSACurve>
Enumeration of supported ECDSA Curves with corresponding algorithm parameter names
  • Enum Constant Details

    • SECP256R1

      public static final ECDSACurve SECP256R1
      NIST P-256
    • SECP384R1

      public static final ECDSACurve SECP384R1
      NIST P-384
    • SECP521R1

      public static final ECDSACurve SECP521R1
      NIST P-521
  • Field Details

    • curveName

      private final String curveName
  • Constructor Details

    • ECDSACurve

      private ECDSACurve(String curveName)
  • Method Details

    • values

      public static ECDSACurve[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ECDSACurve valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getCurveName

      public String getCurveName()
      Get Curve Name for use with Java Cryptography Architecture components
      Returns:
      Curve Name