Class GordianSM2EncryptionSpec
java.lang.Object
io.github.tonywasher.joceanus.gordianknot.api.encrypt.GordianSM2EncryptionSpec
SM2 EncryptionSpec.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSM2 EncryptionType. -
Constructor Summary
ConstructorsConstructorDescriptionGordianSM2EncryptionSpec(GordianSM2EncryptionSpec.GordianSM2EncryptionType pType, GordianDigestSpec pDigest) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic GordianSM2EncryptionSpecc1c2c3(GordianDigestSpec pSpec) Create SM2 C1C2C3 Spec.static GordianSM2EncryptionSpecc1c3c2(GordianDigestSpec pSpec) Create SM2 C1C2C3 Spec.booleanObtain the digestSpec.Obtain the encryptionType.inthashCode()booleanisValid()Is the keySpec valid?static List<GordianSM2EncryptionSpec> Obtain a list of all possible encryptionSpecs.toString()
-
Constructor Details
-
GordianSM2EncryptionSpec
GordianSM2EncryptionSpec(GordianSM2EncryptionSpec.GordianSM2EncryptionType pType, GordianDigestSpec pDigest) Constructor.- Parameters:
pType- the encryptionTypepDigest- the digestSpec
-
-
Method Details
-
c1c2c3
Create SM2 C1C2C3 Spec.- Parameters:
pSpec- the digestSpec- Returns:
- the encryptionSpec
-
c1c3c2
Create SM2 C1C2C3 Spec.- Parameters:
pSpec- the digestSpec- Returns:
- the encryptionSpec
-
getEncryptionType
Obtain the encryptionType.- Returns:
- the encryptionType
-
getDigestSpec
Obtain the digestSpec.- Returns:
- the digestSpec
-
isValid
public boolean isValid()Is the keySpec valid?- Returns:
- true/false.
-
toString
-
equals
-
hashCode
public int hashCode() -
listPossibleSpecs
Obtain a list of all possible encryptionSpecs.- Returns:
- the list
-