Class PlaintextContent
- java.lang.Object
-
- org.signal.libsignal.protocol.message.PlaintextContent
-
- All Implemented Interfaces:
NativeHandleGuard.Owner,CiphertextMessage
public final class PlaintextContent extends java.lang.Object implements CiphertextMessage, NativeHandleGuard.Owner
-
-
Field Summary
-
Fields inherited from interface org.signal.libsignal.protocol.message.CiphertextMessage
CURRENT_VERSION, ENCRYPTED_MESSAGE_OVERHEAD, PLAINTEXT_CONTENT_TYPE, PREKEY_TYPE, SENDERKEY_TYPE, WHISPER_TYPE
-
-
Constructor Summary
Constructors Constructor Description PlaintextContent(byte[] serialized)PlaintextContent(DecryptionErrorMessage message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinalize()byte[]getBody()intgetType()byte[]serialize()longunsafeNativeHandleWithoutGuard()
-
-
-
Constructor Detail
-
PlaintextContent
public PlaintextContent(DecryptionErrorMessage message)
-
PlaintextContent
public PlaintextContent(byte[] serialized) throws InvalidMessageException, InvalidVersionException
-
-
Method Detail
-
finalize
protected void finalize()
- Overrides:
finalizein classjava.lang.Object
-
unsafeNativeHandleWithoutGuard
public long unsafeNativeHandleWithoutGuard()
- Specified by:
unsafeNativeHandleWithoutGuardin interfaceCiphertextMessage- Specified by:
unsafeNativeHandleWithoutGuardin interfaceNativeHandleGuard.Owner
-
serialize
public byte[] serialize()
- Specified by:
serializein interfaceCiphertextMessage
-
getType
public int getType()
- Specified by:
getTypein interfaceCiphertextMessage
-
getBody
public byte[] getBody()
-
-