Top Description Methods
org.bouncycastle.crypto

public Interface AgreementFactory<T extends Parameters>

Known Direct Implementers
org.bouncycastle.crypto.fips.FipsAgreementFactory, org.bouncycastle.crypto.general.EdEC.XDHAgreementFactory
Type Parameters
<T>
the type for the parameters for the operator made by this factory.

Interface for factories producing Agreement objects supporting key agreement.

Method Summary

Modifier and TypeMethod and Description
public Agreement<T>

Returns:

an initialised Agreement.
createAgreement
(AsymmetricPrivateKey
the key to base the agreement on.
key
,
T
agreement parameters.
parameters
)

Return an initialised agreement set up for the passed in key.

Method Detail

createAgreementback to summary
public Agreement<T> createAgreement(AsymmetricPrivateKey key, T parameters)

Return an initialised agreement set up for the passed in key.

Parameters
key:AsymmetricPrivateKey

the key to base the agreement on.

parameters:T

agreement parameters.

Returns:Agreement<T>

an initialised Agreement.