public final class UnencryptedEncryptToSelfMessageAppendix extends EncryptToSelfMessageAppendix implements Appendix.Encryptable
Appendix.AbstractAppendix, Appendix.Encryptable, Appendix.Parser, Appendix.PrunableappendixName, 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, getAppendixTypegetBaselineFeeHeight, getFee, getFullSize, getJSONObject, getNextFee, getNextFeeHeight, getSize, getVersion, isPhased, loadPrunable, loadPrunable, putBytes, validateAtFinish, validateId, verifyVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasAppendixpublic 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 EncryptToSelfMessageAppendixpublic void apply(Transaction transaction, Account senderAccount, Account recipientAccount)
public void encrypt(byte[] privateKey)
encrypt in interface Appendix.Encryptablepublic Fee getBaselineFee(Transaction transaction)
getBaselineFee in interface AppendixgetBaselineFee in class Appendix.AbstractAppendixpublic void validate(Transaction transaction) throws NxtException.ValidationException
validate in class Appendix.AbstractAppendixNxtException.ValidationExceptionpublic final EncryptedData getEncryptedData()
public final boolean isText()
public final boolean isCompressed()
public final boolean isPhasable()
isPhasable in class Appendix.AbstractAppendixpublic boolean isAllowed(Chain chain)