public class JCEDHKeyAgreement extends KeyAgreementSpi
| Constructor and Description |
|---|
JCEDHKeyAgreement() |
| Modifier and Type | Method and Description |
|---|---|
protected Key |
engineDoPhase(Key key,
boolean lastPhase) |
protected byte[] |
engineGenerateSecret() |
protected int |
engineGenerateSecret(byte[] sharedSecret,
int offset) |
protected SecretKey |
engineGenerateSecret(String algorithm) |
protected void |
engineInit(Key key,
AlgorithmParameterSpec params,
SecureRandom random) |
protected void |
engineInit(Key key,
SecureRandom random) |
protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException
engineDoPhase in class KeyAgreementSpiInvalidKeyExceptionIllegalStateExceptionprotected byte[] engineGenerateSecret()
throws IllegalStateException
engineGenerateSecret in class KeyAgreementSpiIllegalStateExceptionprotected int engineGenerateSecret(byte[] sharedSecret,
int offset)
throws IllegalStateException,
ShortBufferException
engineGenerateSecret in class KeyAgreementSpiIllegalStateExceptionShortBufferExceptionprotected SecretKey engineGenerateSecret(String algorithm)
engineGenerateSecret in class KeyAgreementSpiprotected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException
engineInit in class KeyAgreementSpiInvalidKeyExceptionInvalidAlgorithmParameterExceptionprotected void engineInit(Key key, SecureRandom random) throws InvalidKeyException
engineInit in class KeyAgreementSpiInvalidKeyExceptionCopyright © 2015. All rights reserved.