Module java.base
Package javax.crypto

# Class KeyAgreement

=
public class KeyAgreement
extends java.lang.Object

## Constructors

- =
  protected KeyAgreement(javax.crypto.KeyAgreementSpi arg0, java.security.Provider arg1, java.lang.String arg2)

## Methods

- =
  public final java.security.Key doPhase(java.security.Key arg0, boolean arg1) throws java.lang.IllegalStateException, java.security.InvalidKeyException
- =
  public final byte[] generateSecret() throws java.lang.IllegalStateException
- =
  public final int generateSecret(byte[] arg0, int arg1) throws java.lang.IllegalStateException, javax.crypto.ShortBufferException
- =
  public final javax.crypto.SecretKey generateSecret(java.lang.String arg0) throws java.lang.IllegalStateException, java.security.InvalidKeyException, java.security.NoSuchAlgorithmException
- =
  public final java.lang.String getAlgorithm()
- =
  public static final javax.crypto.KeyAgreement getInstance(java.lang.String arg0) throws java.security.NoSuchAlgorithmException
- =
  public static final javax.crypto.KeyAgreement getInstance(java.lang.String arg0, java.lang.String arg1) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
- =
  public static final javax.crypto.KeyAgreement getInstance(java.lang.String arg0, java.security.Provider arg1) throws java.security.NoSuchAlgorithmException
- =
  public final java.security.Provider getProvider()
- =
  public final void init(java.security.Key arg0) throws java.security.InvalidKeyException
- =
  public final void init(java.security.Key arg0, java.security.SecureRandom arg1) throws java.security.InvalidKeyException
- =
  public final void init(java.security.Key arg0, java.security.spec.AlgorithmParameterSpec arg1) throws java.security.InvalidAlgorithmParameterException, java.security.InvalidKeyException
- =
  public final void init(java.security.Key arg0, java.security.spec.AlgorithmParameterSpec arg1, java.security.SecureRandom arg2) throws java.security.InvalidAlgorithmParameterException, java.security.InvalidKeyException

## Summary

No differences.