public class StaleDeviceException
extends java.lang.Exception
Constructor and Description |
---|
StaleDeviceException(OmemoDevice device,
java.util.Date lastMessageDate,
java.util.Date lastDeviceIdPublicationDate)
This exception gets thrown if a message cannot be encrypted for a device due to the device being inactive for too long (stale).
|
Modifier and Type | Method and Description |
---|---|
OmemoDevice |
getDevice()
Return the stale OMEMO device.
|
java.util.Date |
getLastDeviceIdPublicationDate()
Return the date of the last time the deviceId was republished after being inactive/non-existent before.
|
java.util.Date |
getLastMessageDate()
Return the date on which the last OMEMO message sent from the device was received.
|
public StaleDeviceException(OmemoDevice device, java.util.Date lastMessageDate, java.util.Date lastDeviceIdPublicationDate)
device
- OmemoDevice.lastMessageDate
- TODO javadoc me pleaselastDeviceIdPublicationDate
- TODO javadoc me pleasepublic java.util.Date getLastMessageDate()
public java.util.Date getLastDeviceIdPublicationDate()
public OmemoDevice getDevice()