public final class AnonymouslyEncryptedData
extends java.lang.Object
| Constructor and Description |
|---|
AnonymouslyEncryptedData(byte[] data,
byte[] publicKey) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] privateKey) |
byte[] |
decrypt(byte[] keySeed,
byte[] theirPublicKey) |
static AnonymouslyEncryptedData |
encrypt(byte[] plaintext,
byte[] privateKey,
byte[] theirPublicKey,
byte[] nonce) |
byte[] |
getBytes() |
byte[] |
getData() |
byte[] |
getPublicKey() |
int |
getSize() |
static AnonymouslyEncryptedData |
readEncryptedData(byte[] bytes) |
static AnonymouslyEncryptedData |
readEncryptedData(java.nio.ByteBuffer buffer,
int length,
int maxLength) |
java.lang.String |
toString() |
public AnonymouslyEncryptedData(byte[] data,
byte[] publicKey)
public static AnonymouslyEncryptedData encrypt(byte[] plaintext, byte[] privateKey, byte[] theirPublicKey, byte[] nonce)
public static AnonymouslyEncryptedData readEncryptedData(java.nio.ByteBuffer buffer, int length, int maxLength) throws NxtException.NotValidException
NxtException.NotValidExceptionpublic static AnonymouslyEncryptedData readEncryptedData(byte[] bytes)
public byte[] decrypt(byte[] privateKey)
public byte[] decrypt(byte[] keySeed,
byte[] theirPublicKey)
public byte[] getData()
public byte[] getPublicKey()
public int getSize()
public byte[] getBytes()
public java.lang.String toString()
toString in class java.lang.Object