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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReadOnlyDeviceException(OmemoDevice device)
Constructor.
-
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
-
-
-
-
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 toOmemoConfiguration.getMaxReadOnlyMessageCount()
. Therefore providing theOmemoDevice
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.
-
-