Package org.bouncycastle.crypto.fips
Class FipsDH.DHUAgreementFactory
java.lang.Object
org.bouncycastle.crypto.fips.FipsAgreementFactory<FipsDH.DHUAgreementParameters>
org.bouncycastle.crypto.fips.FipsDH.DHUAgreementFactory
- All Implemented Interfaces:
AgreementFactory<FipsDH.DHUAgreementParameters>
- Enclosing class:
FipsDH
public static final class FipsDH.DHUAgreementFactory
extends FipsAgreementFactory<FipsDH.DHUAgreementParameters>
Factory for Unified Agreement operators based on Diffie-Hellman
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAgreement(AsymmetricPrivateKey key, FipsDH.DHUAgreementParameters parameters) Return an Agreement operator based on the regular Diffie-Hellman algorithm.
-
Constructor Details
-
DHUAgreementFactory
public DHUAgreementFactory()
-
-
Method Details
-
createAgreement
public FipsAgreement<FipsDH.DHUAgreementParameters> createAgreement(AsymmetricPrivateKey key, FipsDH.DHUAgreementParameters parameters) Return an Agreement operator based on the regular Diffie-Hellman algorithm.- Specified by:
createAgreementin interfaceAgreementFactory<FipsDH.DHUAgreementParameters>- Specified by:
createAgreementin classFipsAgreementFactory<FipsDH.DHUAgreementParameters>- 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.
-