Class ReadOnlyDeviceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.jivesoftware.smackx.omemo.exceptions.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
-
-
Constructor Summary
Constructors Constructor Description ReadOnlyDeviceException(OmemoDevice device)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OmemoDevicegetDevice()Return the device in question.
-
-
-
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 theOmemoDeviceshould 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.
-
-