Package nxt.messaging
Class UnencryptedEncryptedMessageAppendix
java.lang.Object
nxt.blockchain.Appendix.AbstractAppendix
nxt.messaging.EncryptedMessageAppendix
nxt.messaging.UnencryptedEncryptedMessageAppendix
- All Implemented Interfaces:
Appendix,Appendix.Encryptable
public final class UnencryptedEncryptedMessageAppendix
extends EncryptedMessageAppendix
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.EncryptedMessageAppendix
appendixName, appendixParser, appendixType -
Constructor Summary
ConstructorsConstructorDescriptionUnencryptedEncryptedMessageAppendix(byte[] messageToEncrypt, boolean isText, boolean isCompressed, byte[] recipientPublicKey) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(Transaction transaction, Account senderAccount, Account recipientAccount) voidencrypt(byte[] privateKey) getBaselineFee(Transaction transaction) final EncryptedDataprotected intbooleanfinal booleanfinal booleanfinal booleanisText()protected voidputMyBytes(ByteBuffer buffer) protected voidputMyJSON(org.json.simple.JSONObject json) Methods inherited from class nxt.messaging.EncryptedMessageAppendix
getAppendixName, getAppendixType, validateMethods inherited from class nxt.blockchain.Appendix.AbstractAppendix
getBaselineFeeHeight, getFee, getFullSize, getJSONObject, getNextFee, getNextFeeHeight, getSize, getVersion, isPhased, loadPrunable, loadPrunable, putBytes, validateAtFinish, validateId, verifyVersion
-
Constructor Details
-
UnencryptedEncryptedMessageAppendix
public UnencryptedEncryptedMessageAppendix(byte[] messageToEncrypt, boolean isText, boolean isCompressed, byte[] recipientPublicKey)
-
-
Method Details
-
getMySize
protected int getMySize() -
putMyBytes
-
putMyJSON
protected void putMyJSON(org.json.simple.JSONObject json) - Overrides:
putMyJSONin classEncryptedMessageAppendix
-
apply
-
encrypt
public void encrypt(byte[] privateKey) - Specified by:
encryptin interfaceAppendix.Encryptable
-
getBaselineFee
- Specified by:
getBaselineFeein interfaceAppendix- Overrides:
getBaselineFeein classAppendix.AbstractAppendix
-
getEncryptedData
-
isText
public final boolean isText() -
isCompressed
public final boolean isCompressed() -
isPhasable
public final boolean isPhasable()- Specified by:
isPhasablein classAppendix.AbstractAppendix
-
isAllowed
-