public class DiffieHellmanServer extends Object
| Constructor and Description |
|---|
DiffieHellmanServer() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
encrypt(byte[] clearText,
KeyUsage usage)
Encrypt
|
EncryptionKey |
generateKey(byte[] clientDhNonce,
byte[] serverDhNonce,
EncryptionType type) |
PublicKey |
initAndDoPhase(byte[] clientPubKeyEnc) |
public PublicKey initAndDoPhase(byte[] clientPubKeyEnc) throws Exception
Exceptionpublic EncryptionKey generateKey(byte[] clientDhNonce, byte[] serverDhNonce, EncryptionType type)
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.