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 Detail

      • 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.