Class GordianAgreementSpec
java.lang.Object
io.github.tonywasher.joceanus.gordianknot.api.agree.GordianAgreementSpec
KeyPair Agreement Specification.
-
Constructor Summary
ConstructorsConstructorDescriptionGordianAgreementSpec(GordianKeyPairSpec pKeyPairSpec, GordianAgreementType pAgreementType, GordianAgreementKDF pKDFType) Constructor.GordianAgreementSpec(GordianKeyPairSpec pKeyPairSpec, GordianAgreementType pAgreementType, GordianAgreementKDF pKDFType, Boolean pConfirm) Constructor. -
Method Summary
-
Constructor Details
-
GordianAgreementSpec
public GordianAgreementSpec(GordianKeyPairSpec pKeyPairSpec, GordianAgreementType pAgreementType, GordianAgreementKDF pKDFType) Constructor.- Parameters:
pKeyPairSpec- the keyPairSpecpAgreementType- the agreement typepKDFType- the KDF type
-
GordianAgreementSpec
public GordianAgreementSpec(GordianKeyPairSpec pKeyPairSpec, GordianAgreementType pAgreementType, GordianAgreementKDF pKDFType, Boolean pConfirm) Constructor.- Parameters:
pKeyPairSpec- the keyPairSpecpAgreementType- the agreement typepKDFType- the KDF typepConfirm- with key confirmation
-
-
Method Details
-
getKeyPairSpec
Obtain the keyPairSpec.- Returns:
- the keyPairSpec
-
getAgreementType
Obtain the agreementType.- Returns:
- the agreementType
-
getKDFType
Obtain the kdfType.- Returns:
- the kdfType
-
withConfirm
Is this agreement with key confirmation?- Returns:
- true/false
-
isSupported
public boolean isSupported()Is this Agreement supported?- Returns:
- true/false
-
isValid
public boolean isValid()Is the agreementSpec valid?- Returns:
- true/false.
-
toString
-
equals
-
hashCode
public int hashCode()
-