Package org.bouncycastle.crypto.fips
Class FipsDH.DHAgreementFactory
java.lang.Object
org.bouncycastle.crypto.fips.FipsAgreementFactory<FipsDH.AgreementParameters>
org.bouncycastle.crypto.fips.FipsDH.DHAgreementFactory
- All Implemented Interfaces:
AgreementFactory<FipsDH.AgreementParameters>
- Enclosing class:
FipsDH
public static final class FipsDH.DHAgreementFactory
extends FipsAgreementFactory<FipsDH.AgreementParameters>
Factory for Agreement operators based on Diffie-Hellman
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAgreement(AsymmetricPrivateKey key, FipsDH.AgreementParameters parameters) Return an Agreement operator based on the regular Diffie-Hellman algorithm.
-
Constructor Details
-
DHAgreementFactory
public DHAgreementFactory()
-
-
Method Details
-
createAgreement
public FipsAgreement<FipsDH.AgreementParameters> createAgreement(AsymmetricPrivateKey key, FipsDH.AgreementParameters parameters) Return an Agreement operator based on the regular Diffie-Hellman algorithm.- Specified by:
createAgreementin interfaceAgreementFactory<FipsDH.AgreementParameters>- Specified by:
createAgreementin classFipsAgreementFactory<FipsDH.AgreementParameters>- Parameters:
key- the private key to initialize the Agreement with.parameters- the parameters for configuring the agreement.- Returns:
- a new Agreement operator for Diffie-Hellman.
-