Package nxt.messaging
Class EncryptedMessageAppendix
java.lang.Object
nxt.blockchain.Appendix.AbstractAppendix
nxt.messaging.EncryptedMessageAppendix
- All Implemented Interfaces:
Appendix
- Direct Known Subclasses:
UnencryptedEncryptedMessageAppendix
-
Nested Class Summary
Nested classes/interfaces inherited from interface nxt.blockchain.Appendix
Appendix.AbstractAppendix, Appendix.Encryptable, Appendix.Parser, Appendix.Prunable -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Appendix.Parserstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionEncryptedMessageAppendix(EncryptedData encryptedData, boolean isText, boolean isCompressed) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(Transaction transaction, Account senderAccount, Account recipientAccount) final StringintgetBaselineFee(Transaction transaction) final EncryptedDataprotected intbooleanfinal booleanfinal booleanfinal booleanisText()protected voidputMyBytes(ByteBuffer buffer) protected voidputMyJSON(org.json.simple.JSONObject json) voidvalidate(Transaction transaction) Methods inherited from class nxt.blockchain.Appendix.AbstractAppendix
getBaselineFeeHeight, getFee, getFullSize, getJSONObject, getNextFee, getNextFeeHeight, getSize, getVersion, isPhased, loadPrunable, loadPrunable, putBytes, validateAtFinish, validateId, verifyVersion
-
Field Details
-
appendixType
public static final int appendixType- See Also:
-
appendixName
- See Also:
-
appendixParser
-
-
Constructor Details
-
EncryptedMessageAppendix
-
-
Method Details
-
getAppendixType
public int getAppendixType() -
getAppendixName
- Specified by:
getAppendixNamein classAppendix.AbstractAppendix
-
putMyJSON
protected void putMyJSON(org.json.simple.JSONObject json) -
validate
- Throws:
NxtException.ValidationException
-
getMySize
protected int getMySize()- Specified by:
getMySizein classAppendix.AbstractAppendix
-
putMyBytes
- Specified by:
putMyBytesin classAppendix.AbstractAppendix
-
getBaselineFee
- Specified by:
getBaselineFeein interfaceAppendix- Overrides:
getBaselineFeein classAppendix.AbstractAppendix
-
apply
- Specified by:
applyin classAppendix.AbstractAppendix
-
getEncryptedData
-
isText
public final boolean isText() -
isCompressed
public final boolean isCompressed() -
isPhasable
public final boolean isPhasable()- Specified by:
isPhasablein classAppendix.AbstractAppendix
-
isAllowed
-