Class ReadOnlyDeviceException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ReadOnlyDeviceException
    extends java.lang.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:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      OmemoDevice getDevice()
      Return the device in question.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

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

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

      • getDevice

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