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[] keySeed,
       byte[] theirPublicKey) | 
| byte[] | decrypt(java.lang.String secretPhrase) | 
| static AnonymouslyEncryptedData | encrypt(byte[] plaintext,
       java.lang.String secretPhrase,
       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, java.lang.String secretPhrase, 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(java.lang.String secretPhrase)
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