Class SenderKeyMessage
- java.lang.Object
-
- org.signal.libsignal.protocol.message.SenderKeyMessage
-
- All Implemented Interfaces:
NativeHandleGuard.Owner,CiphertextMessage
public class SenderKeyMessage 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 SenderKeyMessage(byte[] serialized)SenderKeyMessage(long unsafeHandle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinalize()intgetChainId()byte[]getCipherText()java.util.UUIDgetDistributionId()intgetIteration()intgetType()byte[]serialize()longunsafeNativeHandleWithoutGuard()voidverifySignature(ECPublicKey signatureKey)
-
-
-
Constructor Detail
-
SenderKeyMessage
public SenderKeyMessage(long unsafeHandle)
-
SenderKeyMessage
public SenderKeyMessage(byte[] serialized) throws InvalidMessageException, InvalidVersionException, LegacyMessageException
-
-
Method Detail
-
finalize
protected void finalize()
- Overrides:
finalizein classjava.lang.Object
-
unsafeNativeHandleWithoutGuard
public long unsafeNativeHandleWithoutGuard()
- Specified by:
unsafeNativeHandleWithoutGuardin interfaceCiphertextMessage- Specified by:
unsafeNativeHandleWithoutGuardin interfaceNativeHandleGuard.Owner
-
getDistributionId
public java.util.UUID getDistributionId()
-
getChainId
public int getChainId()
-
getIteration
public int getIteration()
-
getCipherText
public byte[] getCipherText()
-
verifySignature
public void verifySignature(ECPublicKey signatureKey) throws InvalidMessageException
- Throws:
InvalidMessageException
-
serialize
public byte[] serialize()
- Specified by:
serializein interfaceCiphertextMessage
-
getType
public int getType()
- Specified by:
getTypein interfaceCiphertextMessage
-
-