Class ReadOnlyDeviceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jivesoftware.smackx.omemo.exceptions.ReadOnlyDeviceException
- All Implemented Interfaces:
 Serializable
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 Summary
Constructors - 
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
- 
Constructor Details
- 
ReadOnlyDeviceException
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 Details
- 
getDevice
Return the device in question.- Returns:
 - device that is read-only.
 
 
 -