public final class UnencryptedPrunableEncryptedMessageAppendix extends PrunableEncryptedMessageAppendix implements Appendix.Encryptable
Appendix.AbstractAppendix, Appendix.Encryptable, Appendix.Parser, Appendix.Prunable
appendixName, appendixParser, appendixType
Constructor and Description |
---|
UnencryptedPrunableEncryptedMessageAppendix(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) |
int |
getMyFullSize() |
void |
loadPrunable(Transaction transaction,
boolean includeExpiredPrunable) |
protected void |
putMyBytes(java.nio.ByteBuffer buffer) |
protected void |
putMyJSON(org.json.simple.JSONObject json) |
void |
putMyPrunableBytes(java.nio.ByteBuffer buffer) |
void |
validate(Transaction transaction) |
getAppendixName, getAppendixType, getBaselineFee, getEncryptedData, getHash, getMySize, hasPrunableData, isAllowed, isCompressed, isPhasable, isText, restorePrunableData
getBaselineFeeHeight, getFee, getFullSize, getJSONObject, getNextFee, getNextFeeHeight, getSize, getVersion, isPhased, loadPrunable, putBytes, validateAtFinish, validateId, verifyVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldLoadPrunable
hasAppendix
public UnencryptedPrunableEncryptedMessageAppendix(byte[] messageToEncrypt, boolean isText, boolean isCompressed, byte[] recipientPublicKey)
public int getMyFullSize()
getMyFullSize
in interface Appendix.Prunable
getMyFullSize
in class PrunableEncryptedMessageAppendix
protected void putMyBytes(java.nio.ByteBuffer buffer)
putMyBytes
in class PrunableEncryptedMessageAppendix
public void putMyPrunableBytes(java.nio.ByteBuffer buffer)
putMyPrunableBytes
in interface Appendix.Prunable
putMyPrunableBytes
in class PrunableEncryptedMessageAppendix
protected void putMyJSON(org.json.simple.JSONObject json)
putMyJSON
in class PrunableEncryptedMessageAppendix
public void validate(Transaction transaction) throws NxtException.ValidationException
validate
in class PrunableEncryptedMessageAppendix
NxtException.ValidationException
public void apply(Transaction transaction, Account senderAccount, Account recipientAccount)
apply
in class PrunableEncryptedMessageAppendix
public void loadPrunable(Transaction transaction, boolean includeExpiredPrunable)
loadPrunable
in class PrunableEncryptedMessageAppendix
public void encrypt(byte[] privateKey)
encrypt
in interface Appendix.Encryptable