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 Constructor Description DHUAgreementFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FipsAgreement<FipsDH.DHUAgreementParameters>
createAgreement(AsymmetricPrivateKey key, FipsDH.DHUAgreementParameters parameters)
Return an Agreement operator based on the regular Diffie-Hellman algorithm.
-
-
-
Method Detail
-
createAgreement
public FipsAgreement<FipsDH.DHUAgreementParameters> createAgreement(AsymmetricPrivateKey key, FipsDH.DHUAgreementParameters parameters)
Return an Agreement operator based on the regular Diffie-Hellman algorithm.- Specified by:
createAgreement
in interfaceAgreementFactory<FipsDH.DHUAgreementParameters>
- Specified by:
createAgreement
in 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.
-
-