public final class UnencryptedEncryptToSelfMessageAppendix extends EncryptToSelfMessageAppendix implements Appendix.Encryptable
Appendix.AbstractAppendix, Appendix.Encryptable, Appendix.Parser, Appendix.Prunable
appendixName, appendixParser, appendixType
Constructor and Description |
---|
UnencryptedEncryptToSelfMessageAppendix(byte[] messageToEncrypt,
boolean isText,
boolean isCompressed) |
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) |
void |
validate(Transaction transaction) |
getAppendixName, getAppendixType
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 UnencryptedEncryptToSelfMessageAppendix(byte[] messageToEncrypt, boolean isText, boolean isCompressed)
protected int getMySize()
protected void putMyBytes(java.nio.ByteBuffer buffer)
protected void putMyJSON(org.json.simple.JSONObject json)
putMyJSON
in class EncryptToSelfMessageAppendix
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 void validate(Transaction transaction) throws NxtException.ValidationException
validate
in class Appendix.AbstractAppendix
NxtException.ValidationException
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)