Class ReadOnlyDeviceException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jivesoftware.smackx.omemo.exceptions.ReadOnlyDeviceException
All Implemented Interfaces:
Serializable

public class ReadOnlyDeviceException extends Exception
Exception that signals, that a device is considered read-only. Read-only devices are devices that receive OMEMO messages, but do not send any. Those devices are weakening forward secrecy. For that reason, read-only devices are ignored after n messages have been sent without getting a reply back.
See Also:
  • Constructor Details

    • ReadOnlyDeviceException

      public ReadOnlyDeviceException(OmemoDevice device)
      Constructor. We do not need to hand over the current value of the message counter, as that value will always be equal to OmemoConfiguration.getMaxReadOnlyMessageCount(). Therefore providing the OmemoDevice should be enough.
      Parameters:
      device - device which is considered read-only.
  • Method Details

    • getDevice

      public OmemoDevice getDevice()
      Return the device in question.
      Returns:
      device that is read-only.