Package javax.crypto

Class KeyAgreement

java.lang.Object
javax.crypto.KeyAgreement

public class KeyAgreement
extends Object
This class provides the functionality for a key exchange protocol. This enables two or more parties to agree on a secret key for symmetric cryptography.
  • Constructor Details

    • KeyAgreement

      protected KeyAgreement​(KeyAgreementSpi keyAgreeSpi, Provider provider, String algorithm)
      Creates a new KeyAgreement instance.
      Parameters:
      keyAgreeSpi - the SPI delegate.
      provider - the provider providing this KeyAgreement.
      algorithm - the name of the key agreement algorithm.
  • Method Details