public class DiffieHellmanClient extends Object
| Constructor and Description |
|---|
DiffieHellmanClient() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] cipherText,
KeyUsage usage)
Decrypt
|
void |
doPhase(byte[] serverPubKeyEnc) |
EncryptionKey |
generateKey(byte[] clientDhNonce,
byte[] serverDhNonce,
EncryptionType type) |
DHParameterSpec |
getDhParam() |
DHPublicKey |
init(DHParameterSpec dhParamSpec) |
public DHParameterSpec getDhParam()
public DHPublicKey init(DHParameterSpec dhParamSpec) throws Exception
Exceptionpublic EncryptionKey generateKey(byte[] clientDhNonce, byte[] serverDhNonce, EncryptionType type)
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.