Enum Class GordianDSTU4145Elliptic
java.lang.Object
java.lang.Enum<GordianDSTU4145Elliptic>
io.github.tonywasher.joceanus.gordianknot.api.keypair.GordianDSTU4145Elliptic
- All Implemented Interfaces:
GordianElliptic,Serializable,Comparable<GordianDSTU4145Elliptic>,Constable
public enum GordianDSTU4145Elliptic
extends Enum<GordianDSTU4145Elliptic>
implements GordianElliptic
Named DSTU4145 Elliptic Curves.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic GordianDSTU4145EllipticgetCurveForName(String pName) Obtain the curve for a Name.Obtain the name of the curve.intObtain the bitSize of the curve.toString()static GordianDSTU4145EllipticReturns the enum constant of this class with the specified name.static GordianDSTU4145Elliptic[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfMethods inherited from interface io.github.tonywasher.joceanus.gordianknot.api.keypair.GordianElliptic
canEncrypt, hasCustomCurve
-
Enum Constant Details
-
DSTU9
DSTU4145-9. -
DSTU1
DSTU4145-1. -
DSTU2
DSTU4145-2. -
DSTU3
DSTU4145-3. -
DSTU4
DSTU4145-4. -
DSTU5
DSTU4145-5. -
DSTU6
DSTU4145-6. -
DSTU7
DSTU4145-7. -
DSTU8
DSTU4145-8.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getCurveName
Description copied from interface:GordianEllipticObtain the name of the curve.- Specified by:
getCurveNamein interfaceGordianElliptic- Returns:
- the name
-
getKeySize
public int getKeySize()Description copied from interface:GordianEllipticObtain the bitSize of the curve.- Specified by:
getKeySizein interfaceGordianElliptic- Returns:
- the size
-
getCurveForName
Obtain the curve for a Name.- Parameters:
pName- the name- Returns:
- the curve
-
toString
- Overrides:
toStringin classEnum<GordianDSTU4145Elliptic>
-