Package net.schmizz.sshj.common
Enum ECDSACurve
- java.lang.Object
-
- java.lang.Enum<ECDSACurve>
-
- net.schmizz.sshj.common.ECDSACurve
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ECDSACurve>
public enum ECDSACurve extends java.lang.Enum<ECDSACurve>
Enumeration of supported ECDSA Curves with corresponding algorithm parameter names
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
curveName
-
Constructor Summary
Constructors Modifier Constructor Description private
ECDSACurve(java.lang.String curveName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCurveName()
Get Curve Name for use with Java Cryptography Architecture componentsstatic ECDSACurve
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ECDSACurve[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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
-
-
Method Detail
-
values
public static ECDSACurve[] 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 (ECDSACurve c : ECDSACurve.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ECDSACurve 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
-
getCurveName
public java.lang.String getCurveName()
Get Curve Name for use with Java Cryptography Architecture components- Returns:
- Curve Name
-
-