Skip navigation links 
 
oracle.security.crypto.jce.provider
Class DHKeyAgreementSpi
java.lang.Object
   javax.crypto.KeyAgreementSpi
javax.crypto.KeyAgreementSpi
       oracle.security.crypto.jce.provider.DHKeyAgreementSpi
oracle.security.crypto.jce.provider.DHKeyAgreementSpi
- 
public class DHKeyAgreementSpi
 
- extends javax.crypto.KeyAgreementSpi
 
  
 
| Method Summary | 
| protected  java.security.Key | engineDoPhase(java.security.Key key, boolean lastPhase)
 | 
| protected  byte[] | engineGenerateSecret()
 | 
| protected  int | engineGenerateSecret(byte[] sharedSecret, int offset)
 | 
| protected  javax.crypto.SecretKey | engineGenerateSecret(java.lang.String algorithm)
 | 
| protected  void | engineInit(java.security.Key key, java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random)
 | 
| protected  void | engineInit(java.security.Key key, java.security.SecureRandom random)
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
DHKeyAgreementSpi
public DHKeyAgreementSpi()
engineDoPhase
protected java.security.Key engineDoPhase(java.security.Key key,
                                          boolean lastPhase)
                                   throws java.security.InvalidKeyException,
                                          java.lang.IllegalStateException
- 
- Specified by:
- engineDoPhasein class- javax.crypto.KeyAgreementSpi
 
- 
- Throws:
- java.security.InvalidKeyException
- java.lang.IllegalStateException
 
engineGenerateSecret
protected byte[] engineGenerateSecret()
                               throws java.lang.IllegalStateException
- 
- Specified by:
- engineGenerateSecretin class- javax.crypto.KeyAgreementSpi
 
- 
- Throws:
- java.lang.IllegalStateException
 
engineGenerateSecret
protected int engineGenerateSecret(byte[] sharedSecret,
                                   int offset)
                            throws java.lang.IllegalStateException,
                                   javax.crypto.ShortBufferException
- 
- Specified by:
- engineGenerateSecretin class- javax.crypto.KeyAgreementSpi
 
- 
- Throws:
- java.lang.IllegalStateException
- javax.crypto.ShortBufferException
 
engineGenerateSecret
protected javax.crypto.SecretKey engineGenerateSecret(java.lang.String algorithm)
                                               throws java.lang.IllegalStateException,
                                                      java.security.NoSuchAlgorithmException,
                                                      java.security.InvalidKeyException
- 
- Specified by:
- engineGenerateSecretin class- javax.crypto.KeyAgreementSpi
 
- 
- Throws:
- java.lang.IllegalStateException
- java.security.NoSuchAlgorithmException
- java.security.InvalidKeyException
 
engineInit
protected void engineInit(java.security.Key key,
                          java.security.spec.AlgorithmParameterSpec params,
                          java.security.SecureRandom random)
                   throws java.security.InvalidKeyException,
                          java.security.InvalidAlgorithmParameterException
- 
- Specified by:
- engineInitin class- javax.crypto.KeyAgreementSpi
 
- 
- Throws:
- java.security.InvalidKeyException
- java.security.InvalidAlgorithmParameterException
 
engineInit
protected void engineInit(java.security.Key key,
                          java.security.SecureRandom random)
                   throws java.security.InvalidKeyException
- 
- Specified by:
- engineInitin class- javax.crypto.KeyAgreementSpi
 
- 
- Throws:
- java.security.InvalidKeyException
 
Skip navigation links 
 
Copyright © 2005, 2011 , Oracle. All rights reserved.