public final class UnencryptedEncryptedMessageAppendix extends EncryptedMessageAppendix implements Appendix.Encryptable
Appendix.AbstractAppendix, Appendix.Encryptable, Appendix.Parser, Appendix.Prunable
appendixName, appendixParser, appendixType
Constructor and Description |
---|
UnencryptedEncryptedMessageAppendix(byte[] messageToEncrypt,
boolean isText,
boolean isCompressed,
byte[] recipientPublicKey) |
Modifier and Type | Method and Description |
---|---|
void |
apply(Transaction transaction,
Account senderAccount,
Account recipientAccount) |
void |
encrypt(byte[] privateKey) |
Fee |
getBaselineFee(Transaction transaction) |
EncryptedData |
getEncryptedData() |
protected int |
getMySize() |
boolean |
isAllowed(Chain chain) |
boolean |
isCompressed() |
boolean |
isPhasable() |
boolean |
isText() |
protected void |
putMyBytes(java.nio.ByteBuffer buffer) |
protected void |
putMyJSON(org.json.simple.JSONObject json) |
getAppendixName, getAppendixType, validate
getBaselineFeeHeight, getFee, getFullSize, getJSONObject, getNextFee, getNextFeeHeight, getSize, getVersion, isPhased, loadPrunable, loadPrunable, putBytes, validateAtFinish, validateId, verifyVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasAppendix
public UnencryptedEncryptedMessageAppendix(byte[] messageToEncrypt, boolean isText, boolean isCompressed, byte[] recipientPublicKey)
protected int getMySize()
protected void putMyBytes(java.nio.ByteBuffer buffer)
protected void putMyJSON(org.json.simple.JSONObject json)
putMyJSON
in class EncryptedMessageAppendix
public void apply(Transaction transaction, Account senderAccount, Account recipientAccount)
public void encrypt(byte[] privateKey)
encrypt
in interface Appendix.Encryptable
public Fee getBaselineFee(Transaction transaction)
getBaselineFee
in interface Appendix
getBaselineFee
in class Appendix.AbstractAppendix
public final EncryptedData getEncryptedData()
public final boolean isText()
public final boolean isCompressed()
public final boolean isPhasable()
isPhasable
in class Appendix.AbstractAppendix
public boolean isAllowed(Chain chain)