Class CiphertextTuple


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

      Constructors 
      Constructor Description
      CiphertextTuple​(byte[] ciphertext, int type)
      Create a new CiphertextTuple.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getCiphertext()
      Return the ciphertext.
      int getMessageType()
      Return the messageType.
      boolean isPreKeyMessage()
      Returns true if this is a preKeyMessage.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CiphertextTuple

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

      • 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?