Class FipsDH.DHUAgreementParametersBuilder

  • All Implemented Interfaces:
    Parameters
    Enclosing class:
    FipsDH

    public static final class FipsDH.DHUAgreementParametersBuilder
    extends FipsParameters
    Initial builder for DHU parameters.
    • Method Detail

      • using

        public FipsDH.DHUAgreementParameters using​(AsymmetricKeyPair ephemeralKeyPair,
                                                   AsymmetricDHPublicKey otherPartyEphemeralKey)
        Constructor for DH DHU parameters from an ephemeral public/private key pair. This constructor will result in an agreement which returns the raw calculated agreement value, or shared secret.
        Parameters:
        ephemeralKeyPair - our ephemeral public/private key pair.
        otherPartyEphemeralKey - the other party's ephemeral public key.
      • using

        public FipsDH.DHUAgreementParameters using​(AsymmetricDHPrivateKey ephemeralPrivateKey,
                                                   AsymmetricDHPublicKey otherPartyEphemeralKey)
        Constructor for DH DHU parameters which assumes later calculation of our ephemeral public key. This constructor will result in an agreement which returns the raw calculated agreement value, or shared secret.
        Parameters:
        ephemeralPrivateKey - our ephemeral private key.
        otherPartyEphemeralKey - the other party's ephemeral public key.