public class PrunableEncryptedMessageAppendix extends Appendix.AbstractAppendix implements Appendix.Prunable
Appendix.AbstractAppendix, Appendix.Encryptable, Appendix.Parser, Appendix.Prunable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
appendixName |
static Appendix.Parser |
appendixParser |
static int |
appendixType |
Constructor and Description |
---|
PrunableEncryptedMessageAppendix(EncryptedData encryptedData,
boolean isText,
boolean isCompressed) |
PrunableEncryptedMessageAppendix(org.json.simple.JSONObject attachmentJSON) |
Modifier and Type | Method and Description |
---|---|
void |
apply(Transaction transaction,
Account senderAccount,
Account recipientAccount) |
java.lang.String |
getAppendixName() |
int |
getAppendixType() |
Fee |
getBaselineFee(Transaction transaction) |
EncryptedData |
getEncryptedData() |
byte[] |
getHash() |
int |
getMyFullSize() |
protected int |
getMySize() |
boolean |
hasPrunableData() |
boolean |
isAllowed(Chain chain) |
boolean |
isCompressed() |
boolean |
isPhasable() |
boolean |
isText() |
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 |
restorePrunableData(Transaction transaction,
int blockTimestamp,
int height) |
void |
validate(Transaction transaction) |
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 static final int appendixType
public static final java.lang.String appendixName
public static final Appendix.Parser appendixParser
public PrunableEncryptedMessageAppendix(org.json.simple.JSONObject attachmentJSON)
public PrunableEncryptedMessageAppendix(EncryptedData encryptedData, boolean isText, boolean isCompressed)
public final Fee getBaselineFee(Transaction transaction)
getBaselineFee
in interface Appendix
getBaselineFee
in class Appendix.AbstractAppendix
protected final int getMySize()
getMySize
in class Appendix.AbstractAppendix
public int getMyFullSize()
getMyFullSize
in interface Appendix.Prunable
protected void putMyBytes(java.nio.ByteBuffer buffer)
putMyBytes
in class Appendix.AbstractAppendix
public void putMyPrunableBytes(java.nio.ByteBuffer buffer)
putMyPrunableBytes
in interface Appendix.Prunable
protected void putMyJSON(org.json.simple.JSONObject json)
putMyJSON
in class Appendix.AbstractAppendix
public int getAppendixType()
getAppendixType
in interface Appendix
public final java.lang.String getAppendixName()
getAppendixName
in class Appendix.AbstractAppendix
public void validate(Transaction transaction) throws NxtException.ValidationException
validate
in class Appendix.AbstractAppendix
NxtException.ValidationException
public void apply(Transaction transaction, Account senderAccount, Account recipientAccount)
apply
in class Appendix.AbstractAppendix
public final EncryptedData getEncryptedData()
public final boolean isText()
public final boolean isCompressed()
public final byte[] getHash()
getHash
in interface Appendix.Prunable
public void loadPrunable(Transaction transaction, boolean includeExpiredPrunable)
loadPrunable
in class Appendix.AbstractAppendix
public final boolean isPhasable()
isPhasable
in class Appendix.AbstractAppendix
public final boolean hasPrunableData()
hasPrunableData
in interface Appendix.Prunable
public void restorePrunableData(Transaction transaction, int blockTimestamp, int height)
restorePrunableData
in interface Appendix.Prunable