public class KeyAgreement extends KeyAgreementSpi
Modifier and Type | Class and Description |
---|---|
static class |
KeyAgreement.DH |
static class |
KeyAgreement.DHC |
static class |
KeyAgreement.DHwithSHA1KDF |
static class |
KeyAgreement.MQV |
static class |
KeyAgreement.MQVwithSHA1KDF |
Modifier | Constructor and Description |
---|---|
protected |
KeyAgreement(String kaAlgorithm,
BasicAgreement agreement,
DerivationFunction kdf) |
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 KeyAgreement(String kaAlgorithm, BasicAgreement agreement, DerivationFunction kdf)
protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException
engineDoPhase
in class KeyAgreementSpi
InvalidKeyException
IllegalStateException
protected byte[] engineGenerateSecret() throws IllegalStateException
engineGenerateSecret
in class KeyAgreementSpi
IllegalStateException
protected int engineGenerateSecret(byte[] sharedSecret, int offset) throws IllegalStateException, ShortBufferException
engineGenerateSecret
in class KeyAgreementSpi
IllegalStateException
ShortBufferException
protected SecretKey engineGenerateSecret(String algorithm) throws NoSuchAlgorithmException
engineGenerateSecret
in class KeyAgreementSpi
NoSuchAlgorithmException
protected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException
engineInit
in class KeyAgreementSpi
InvalidKeyException
InvalidAlgorithmParameterException
protected void engineInit(Key key, SecureRandom random) throws InvalidKeyException
engineInit
in class KeyAgreementSpi
InvalidKeyException
Copyright © 2015. All rights reserved.