public class ECDH
extends java.lang.Object
| Constructor and Description |
|---|
ECDH() |
| Modifier and Type | Method and Description |
|---|---|
java.security.KeyPair |
generateKeyPair() |
byte[] |
generateSecret(byte[] dataPrv,
byte[] dataPub) |
byte[] |
savePrivateKey(java.security.PrivateKey key) |
byte[] |
savePublicKey(java.security.PublicKey key) |
public ECDH()
throws java.security.GeneralSecurityException
java.security.GeneralSecurityExceptionpublic java.security.KeyPair generateKeyPair()
public byte[] savePublicKey(java.security.PublicKey key)
throws java.lang.Exception
java.lang.Exceptionpublic byte[] savePrivateKey(java.security.PrivateKey key)
throws java.lang.Exception
java.lang.Exceptionpublic byte[] generateSecret(byte[] dataPrv,
byte[] dataPub)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2019. All rights reserved.