Package nxt.messaging
Class UnencryptedPrunableEncryptedMessageAppendix
java.lang.Object
nxt.blockchain.Appendix.AbstractAppendix
nxt.messaging.PrunableEncryptedMessageAppendix
nxt.messaging.UnencryptedPrunableEncryptedMessageAppendix
- All Implemented Interfaces:
Appendix,Appendix.Encryptable,Appendix.Prunable
public final class UnencryptedPrunableEncryptedMessageAppendix
extends PrunableEncryptedMessageAppendix
implements Appendix.Encryptable
-
Nested Class Summary
Nested classes/interfaces inherited from interface nxt.blockchain.Appendix
Appendix.AbstractAppendix, Appendix.Encryptable, Appendix.Parser, Appendix.Prunable -
Field Summary
Fields inherited from class nxt.messaging.PrunableEncryptedMessageAppendix
appendixName, appendixParser, appendixType -
Constructor Summary
ConstructorsConstructorDescriptionUnencryptedPrunableEncryptedMessageAppendix(byte[] messageToEncrypt, boolean isText, boolean isCompressed, byte[] recipientPublicKey) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(Transaction transaction, Account senderAccount, Account recipientAccount) voidencrypt(byte[] privateKey) intvoidloadPrunable(Transaction transaction, boolean includeExpiredPrunable) protected voidputMyBytes(ByteBuffer buffer) protected voidputMyJSON(org.json.simple.JSONObject json) voidputMyPrunableBytes(ByteBuffer buffer) voidvalidate(Transaction transaction) Methods inherited from class nxt.messaging.PrunableEncryptedMessageAppendix
getAppendixName, getAppendixType, getBaselineFee, getEncryptedData, getHash, getMySize, hasPrunableData, isAllowed, isCompressed, isPhasable, isText, restorePrunableDataMethods inherited from class nxt.blockchain.Appendix.AbstractAppendix
getBaselineFeeHeight, getFee, getFullSize, getJSONObject, getNextFee, getNextFeeHeight, getSize, getVersion, isPhased, loadPrunable, putBytes, validateAtFinish, validateId, verifyVersionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nxt.blockchain.Appendix.Prunable
shouldLoadPrunable
-
Constructor Details
-
UnencryptedPrunableEncryptedMessageAppendix
public UnencryptedPrunableEncryptedMessageAppendix(byte[] messageToEncrypt, boolean isText, boolean isCompressed, byte[] recipientPublicKey)
-
-
Method Details
-
getMyFullSize
public int getMyFullSize()- Specified by:
getMyFullSizein interfaceAppendix.Prunable- Overrides:
getMyFullSizein classPrunableEncryptedMessageAppendix
-
putMyBytes
- Overrides:
putMyBytesin classPrunableEncryptedMessageAppendix
-
putMyPrunableBytes
- Specified by:
putMyPrunableBytesin interfaceAppendix.Prunable- Overrides:
putMyPrunableBytesin classPrunableEncryptedMessageAppendix
-
putMyJSON
protected void putMyJSON(org.json.simple.JSONObject json) - Overrides:
putMyJSONin classPrunableEncryptedMessageAppendix
-
validate
- Overrides:
validatein classPrunableEncryptedMessageAppendix- Throws:
NxtException.ValidationException
-
apply
- Overrides:
applyin classPrunableEncryptedMessageAppendix
-
loadPrunable
- Overrides:
loadPrunablein classPrunableEncryptedMessageAppendix
-
encrypt
public void encrypt(byte[] privateKey) - Specified by:
encryptin interfaceAppendix.Encryptable
-