Enum Class GordianSM2Elliptic
java.lang.Object
java.lang.Enum<GordianSM2Elliptic>
io.github.tonywasher.joceanus.gordianknot.api.keypair.GordianSM2Elliptic
- All Implemented Interfaces:
GordianElliptic,Serializable,Comparable<GordianSM2Elliptic>,Constable
Named SM2 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 GordianSM2EllipticgetCurveForName(String pName) Obtain the curve for a Name.Obtain the name of the curve.intObtain the bitSize of the curve.booleanDoes the curve have a custom implementation?toString()static GordianSM2EllipticReturns the enum constant of this class with the specified name.static GordianSM2Elliptic[]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
-
Enum Constant Details
-
SM2P256V1
sm2p256v1. -
WAPIP192V1
wapip192v1.
-
-
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<GordianSM2Elliptic>
-
hasCustomCurve
public boolean hasCustomCurve()Description copied from interface:GordianEllipticDoes the curve have a custom implementation?- Specified by:
hasCustomCurvein interfaceGordianElliptic- Returns:
- true/false
-