Package nxt.messaging
Class UnencryptedEncryptToSelfMessageAppendix
java.lang.Object
nxt.blockchain.Appendix.AbstractAppendix
nxt.messaging.EncryptToSelfMessageAppendix
nxt.messaging.UnencryptedEncryptToSelfMessageAppendix
- All Implemented Interfaces:
Appendix,Appendix.Encryptable
public final class UnencryptedEncryptToSelfMessageAppendix
extends EncryptToSelfMessageAppendix
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.EncryptToSelfMessageAppendix
appendixName, appendixParser, appendixType -
Constructor Summary
ConstructorsConstructorDescriptionUnencryptedEncryptToSelfMessageAppendix(byte[] messageToEncrypt, boolean isText, boolean isCompressed) -
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) voidvalidate(Transaction transaction) Methods inherited from class nxt.messaging.EncryptToSelfMessageAppendix
getAppendixName, getAppendixTypeMethods inherited from class nxt.blockchain.Appendix.AbstractAppendix
getBaselineFeeHeight, getFee, getFullSize, getJSONObject, getNextFee, getNextFeeHeight, getSize, getVersion, isPhased, loadPrunable, loadPrunable, putBytes, validateAtFinish, validateId, verifyVersion
-
Constructor Details
-
UnencryptedEncryptToSelfMessageAppendix
public UnencryptedEncryptToSelfMessageAppendix(byte[] messageToEncrypt, boolean isText, boolean isCompressed)
-
-
Method Details
-
getMySize
protected int getMySize() -
putMyBytes
-
putMyJSON
protected void putMyJSON(org.json.simple.JSONObject json) - Overrides:
putMyJSONin classEncryptToSelfMessageAppendix
-
apply
-
encrypt
public void encrypt(byte[] privateKey) - Specified by:
encryptin interfaceAppendix.Encryptable
-
getBaselineFee
- Specified by:
getBaselineFeein interfaceAppendix- Overrides:
getBaselineFeein classAppendix.AbstractAppendix
-
validate
- Specified by:
validatein classAppendix.AbstractAppendix- Throws:
NxtException.ValidationException
-
getEncryptedData
-
isText
public final boolean isText() -
isCompressed
public final boolean isCompressed() -
isPhasable
public final boolean isPhasable()- Specified by:
isPhasablein classAppendix.AbstractAppendix
-
isAllowed
-