Name

Class javax.crypto.KeyAgreementSpi

Description

KeyAgreementSpi is the superclass of all key agreement protocol implementations. If you want to implement a key agreement algorithm, create a subclass of KeyAgreementSpi and define all of its methods.

Class Definition

public abstract class javax.crypto.KeyAgreementSpi
  extends java.lang.Object {

  // Constructors
  public KeyAgreementSpi();

  // Protected Instance Methods
  protected abstract Key engineDoPhase(Key, boolean);
  protected abstract byte[] engineGenerateSecret();
  protected abstract int engineGenerateSecret(byte[], int);
  protected abstract SecretKey engineGenerateSecret(String);
  protected abstract void engineInit(Key, SecureRandom);
  protected abstract void engineInit(Key, AlgorithmParameterSpec,
 	SecureRandom);
}

See Also

AlgorithmParameterSpec, Key, KeyAgreement, SecureRandom

Get Java Cryptography now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.