Package org.bouncycastle.crypto.fips
Class FipsAgreementFactory<T extends Parameters>
java.lang.Object
org.bouncycastle.crypto.fips.FipsAgreementFactory<T>
- Type Parameters:
T- the parameters type associated with the final implementation of this factory.
- All Implemented Interfaces:
AgreementFactory<T>
- Direct Known Subclasses:
FipsDH.DHAgreementFactory,FipsDH.DHUAgreementFactory,FipsDH.MQVAgreementFactory,FipsEC.DHAgreementFactory,FipsEC.DHUAgreementFactory,FipsEC.MQVAgreementFactory
public abstract class FipsAgreementFactory<T extends Parameters>
extends Object
implements AgreementFactory<T>
Base class for the approved mode AgreementFactory implementations.
-
Method Summary
Modifier and TypeMethodDescriptionabstract FipsAgreement<T> createAgreement(AsymmetricPrivateKey key, T parameters) Return an initialised agreement set up for the passed in key.
-
Method Details
-
createAgreement
Description copied from interface:AgreementFactoryReturn an initialised agreement set up for the passed in key.- Specified by:
createAgreementin interfaceAgreementFactory<T extends Parameters>- Parameters:
key- the key to base the agreement on.parameters- agreement parameters.- Returns:
- an initialised Agreement.
-