Enum Class GordianAgreementKDF
java.lang.Object
java.lang.Enum<GordianAgreementKDF>
io.github.tonywasher.joceanus.gordianknot.api.agree.GordianAgreementKDF
- All Implemented Interfaces:
Serializable,Comparable<GordianAgreementKDF>,Constable
KDF types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionKMAC128.KMAC256.None.SHA256 CKDF.SHA256 HKDF.SHA256 KDF.SHA512 CKDF.SHA512 HKDF.SHA512 KDF.SHAKE256. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisCKDF()Determine whether this is a CKDF.booleanisSupported(GordianKeyPairType pKeyType, GordianAgreementType pAgreeType) Determine whether this is a supported kdfType.static GordianAgreementKDFReturns the enum constant of this class with the specified name.static GordianAgreementKDF[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
None. -
SHA256KDF
SHA256 KDF. -
SHA512KDF
SHA512 KDF. -
SHA256CKDF
SHA256 CKDF. -
SHA512CKDF
SHA512 CKDF. -
SHA256HKDF
SHA256 HKDF. -
SHA512HKDF
SHA512 HKDF. -
KMAC128
KMAC128. -
KMAC256
KMAC256. -
SHAKE256
SHAKE256.
-
-
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
-
isSupported
Determine whether this is a supported kdfType.- Parameters:
pKeyType- pKeyTypepAgreeType- the agreement type- Returns:
- true/false
-
isCKDF
public boolean isCKDF()Determine whether this is a CKDF.- Returns:
- true/false
-