public class PrivateKey extends AbstractKey
key| Constructor and Description |
|---|
PrivateKey(byte[] key)
PrivateKey constructor with byte[].
|
PrivateKey(String privateKeyBase64)
PrivateKey constructor with base64 String.
|
| Modifier and Type | Method and Description |
|---|---|
PublicKey |
getPublicKey() |
byte[] |
open(byte[] encryptedMessage,
PublicKey senderPublicKey,
byte[] nonce)
decrypts an encrypted message with the appropriate sender information.
|
Hashtable<String,byte[]> |
seal(byte[] message,
PublicKey recipientPublicKey)
encrypts a plain text message decipherable afterwards by the recipient private key.
|
getKeypublic PrivateKey(byte[] key)
key - public PrivateKey(String privateKeyBase64)
privateKeyBase64 - public Hashtable<String,byte[]> seal(byte[] message, PublicKey recipientPublicKey)
message - recipientPublicKey - public byte[] open(byte[] encryptedMessage,
PublicKey senderPublicKey,
byte[] nonce)
encryptedMessage - nonce - senderPublicKey - public PublicKey getPublicKey()
Copyright © 2020 Transchain. All rights reserved.