Enum Class GordianMLDSASpec
java.lang.Object
java.lang.Enum<GordianMLDSASpec>
io.github.tonywasher.joceanus.gordianknot.api.keypair.GordianMLDSASpec
- All Implemented Interfaces:
Serializable,Comparable<GordianMLDSASpec>,Constable
MLDSA KeySpec.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionmldsa44.mldsa44sha2.mldsa65.mldsa65sha2.mldsa87.mldsa87sha2. -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.ASN1ObjectIdentifierObtain MLDSA algorithm Identifier.org.bouncycastle.pqc.crypto.mldsa.MLDSAParametersObtain MLDSA Parameters.org.bouncycastle.jcajce.spec.MLDSAParameterSpecObtain MLDSA ParameterSpec.booleanisHash()Is this a hash signer?static GordianMLDSASpecReturns the enum constant of this class with the specified name.static GordianMLDSASpec[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MLDSA44
mldsa44. -
MLDSA65
mldsa65. -
MLDSA87
mldsa87. -
MLDSA44SHA
mldsa44sha2. -
MLDSA65SHA
mldsa65sha2. -
MLDSA87SHA
mldsa87sha2.
-
-
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
-
isHash
public boolean isHash()Is this a hash signer?- Returns:
- true/false
-
getParameters
public org.bouncycastle.pqc.crypto.mldsa.MLDSAParameters getParameters()Obtain MLDSA Parameters.- Returns:
- the parameters.
-
getParameterSpec
public org.bouncycastle.jcajce.spec.MLDSAParameterSpec getParameterSpec()Obtain MLDSA ParameterSpec.- Returns:
- the parameters.
-
getIdentifier
public org.bouncycastle.asn1.ASN1ObjectIdentifier getIdentifier()Obtain MLDSA algorithm Identifier.- Returns:
- the identifier.
-