Class GordianAgreementSpecBuilder
java.lang.Object
io.github.tonywasher.joceanus.gordianknot.api.agree.GordianAgreementSpecBuilder
KeyPair Agreement Specification Builder.
-
Method Summary
Modifier and TypeMethodDescriptionstatic GordianAgreementSpecanon(GordianKeyPairSpec pKeyPairSpec, GordianAgreementKDF pKDFType) Create the ANON agreementSpec.static GordianAgreementSpecbasic(GordianKeyPairSpec pKeyPairSpec, GordianAgreementKDF pKDFType) Create the Basic agreementSpec.static GordianAgreementSpeckem(GordianKeyPairSpec pKeyPairSpec, GordianAgreementKDF pKDFType) Create the KEM agreementSpec.static GordianAgreementSpecmqv(GordianKeyPairSpec pKeyPairSpec, GordianAgreementKDF pKDFType) Create the MQV agreementSpec.static GordianAgreementSpecmqvConfirm(GordianKeyPairSpec pKeyPairSpec, GordianAgreementKDF pKDFType) Create the MQVConfirm agreementSpec.static GordianAgreementSpecsigned(GordianKeyPairSpec pKeyPairSpec, GordianAgreementKDF pKDFType) Create the signed agreementSpec.static GordianAgreementSpecsm2(GordianKeyPairSpec pKeyPairSpec, GordianAgreementKDF pKDFType) Create the sm2 agreementSpec.static GordianAgreementSpecsm2Confirm(GordianKeyPairSpec pKeyPairSpec, GordianAgreementKDF pKDFType) Create the sm2Confirm agreementSpec.static GordianAgreementSpecunified(GordianKeyPairSpec pKeyPairSpec, GordianAgreementKDF pKDFType) Create the Unified agreementSpec.static GordianAgreementSpecunifiedConfirm(GordianKeyPairSpec pKeyPairSpec, GordianAgreementKDF pKDFType) Create the unifiedConfirm agreementSpec.
-
Method Details
-
kem
public static GordianAgreementSpec kem(GordianKeyPairSpec pKeyPairSpec, GordianAgreementKDF pKDFType) Create the KEM agreementSpec.- Parameters:
pKeyPairSpec- the keyPairSpecpKDFType- the KDF type- Returns:
- the Spec
-
anon
public static GordianAgreementSpec anon(GordianKeyPairSpec pKeyPairSpec, GordianAgreementKDF pKDFType) Create the ANON agreementSpec.- Parameters:
pKeyPairSpec- the keyPairSpecpKDFType- the KDF type- Returns:
- the Spec
-
basic
public static GordianAgreementSpec basic(GordianKeyPairSpec pKeyPairSpec, GordianAgreementKDF pKDFType) Create the Basic agreementSpec.- Parameters:
pKeyPairSpec- the keyPairSpecpKDFType- the KDF type- Returns:
- the Spec
-
signed
public static GordianAgreementSpec signed(GordianKeyPairSpec pKeyPairSpec, GordianAgreementKDF pKDFType) Create the signed agreementSpec.- Parameters:
pKeyPairSpec- the keyPairSpecpKDFType- the KDF type- Returns:
- the Spec
-
mqv
public static GordianAgreementSpec mqv(GordianKeyPairSpec pKeyPairSpec, GordianAgreementKDF pKDFType) Create the MQV agreementSpec.- Parameters:
pKeyPairSpec- the keyPairSpecpKDFType- the KDF type- Returns:
- the Spec
-
mqvConfirm
public static GordianAgreementSpec mqvConfirm(GordianKeyPairSpec pKeyPairSpec, GordianAgreementKDF pKDFType) Create the MQVConfirm agreementSpec.- Parameters:
pKeyPairSpec- the keyPairSpecpKDFType- the KDF type- Returns:
- the Spec
-
unified
public static GordianAgreementSpec unified(GordianKeyPairSpec pKeyPairSpec, GordianAgreementKDF pKDFType) Create the Unified agreementSpec.- Parameters:
pKeyPairSpec- the keyPairSpecpKDFType- the KDF type- Returns:
- the Spec
-
unifiedConfirm
public static GordianAgreementSpec unifiedConfirm(GordianKeyPairSpec pKeyPairSpec, GordianAgreementKDF pKDFType) Create the unifiedConfirm agreementSpec.- Parameters:
pKeyPairSpec- the keyPairSpecpKDFType- the KDF type- Returns:
- the Spec
-
sm2
public static GordianAgreementSpec sm2(GordianKeyPairSpec pKeyPairSpec, GordianAgreementKDF pKDFType) Create the sm2 agreementSpec.- Parameters:
pKeyPairSpec- the keyPairSpecpKDFType- the KDF type- Returns:
- the Spec
-
sm2Confirm
public static GordianAgreementSpec sm2Confirm(GordianKeyPairSpec pKeyPairSpec, GordianAgreementKDF pKDFType) Create the sm2Confirm agreementSpec.- Parameters:
pKeyPairSpec- the keyPairSpecpKDFType- the KDF type- Returns:
- the Spec
-