Class FipsAgreement<T extends Parameters>

  • Type Parameters:
    T - the parameters type associated with the final implementation of this key agreement.
    All Implemented Interfaces:
    Agreement<T>

    public abstract class FipsAgreement<T extends Parameters>
    extends java.lang.Object
    implements Agreement<T>
    Base class for the FIPS approved mode Agreement implementations.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract byte[] calculate​(AsymmetricPublicKey key)
      Calculate the agreement using the passed in public key.
      abstract T getParameters()
      Return the parameters being used by this agreement.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getParameters

        public abstract T getParameters()
        Description copied from interface: Agreement
        Return the parameters being used by this agreement.
        Specified by:
        getParameters in interface Agreement<T extends Parameters>
        Returns:
        the key agreement parameters.
      • calculate

        public abstract byte[] calculate​(AsymmetricPublicKey key)
        Description copied from interface: Agreement
        Calculate the agreement using the passed in public key.
        Specified by:
        calculate in interface Agreement<T extends Parameters>
        Parameters:
        key - the public key of the other party.
        Returns:
        the agreement value.