Interface Agreement<T extends Parameters>

Type Parameters:
T - the parameters class for the particular version.
All Known Implementing Classes:
FipsAgreement

public interface Agreement<T extends Parameters>
Basic interface for key agreement implementations.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Calculate the agreement using the passed in public key.
    Return the parameters being used by this agreement.
  • Method Details

    • getParameters

      T getParameters()
      Return the parameters being used by this agreement.
      Returns:
      the key agreement parameters.
    • calculate

      byte[] calculate(AsymmetricPublicKey key)
      Calculate the agreement using the passed in public key.
      Parameters:
      key - the public key of the other party.
      Returns:
      the agreement value.