Class CiphertextTuple

java.lang.Object
org.jivesoftware.smackx.omemo.internal.CiphertextTuple

public class CiphertextTuple extends Object
Bundles a decrypted ciphertext together with information about the message type.
  • Constructor Details

    • CiphertextTuple

      public CiphertextTuple(byte[] ciphertext, int type)
      Create a new CiphertextTuple.
      Parameters:
      ciphertext - ciphertext
      type - type
  • Method Details

    • getCiphertext

      public byte[] getCiphertext()
      Return the ciphertext.
      Returns:
      ciphertext part of the tuple
    • getMessageType

      public int getMessageType()
      Return the messageType.
      Returns:
      type of the message
    • isPreKeyMessage

      public boolean isPreKeyMessage()
      Returns true if this is a preKeyMessage.
      Returns:
      preKeyMessage?