Class KeyVerificationRequestContent
- java.lang.Object
-
- io.github.ma1uta.matrix.event.content.KeyVerificationRequestContent
-
- All Implemented Interfaces:
EventContent
public class KeyVerificationRequestContent extends Object implements EventContent
Requests a key verification with another user's devices. Typically sent as a to-device event.
-
-
Field Summary
Fields Modifier and Type Field Description private String
fromDevice
Required.private List<String>
methods
Required.private Long
timestamp
Required.private String
transactionId
Required.
-
Constructor Summary
Constructors Constructor Description KeyVerificationRequestContent()
-
Method Summary
Modifier and Type Method Description String
getFromDevice()
List<String>
getMethods()
Long
getTimestamp()
String
getTransactionId()
void
setFromDevice(String fromDevice)
void
setMethods(List<String> methods)
void
setTimestamp(Long timestamp)
void
setTransactionId(String transactionId)
-
-
-
Field Detail
-
fromDevice
private String fromDevice
Required. The device ID which is initiating the request.
-
transactionId
private String transactionId
Required. An opaque identifier for the verification request. Must be unique with respect to the devices involved.
-
timestamp
private Long timestamp
Required. The POSIX timestamp in milliseconds for when the request was made. If the request is in the future by more than 5 minutes or more than 10 minutes in the past, the message should be ignored by the receiver.
-
-
Method Detail
-
getFromDevice
public String getFromDevice()
-
setFromDevice
public void setFromDevice(String fromDevice)
-
getTransactionId
public String getTransactionId()
-
setTransactionId
public void setTransactionId(String transactionId)
-
getTimestamp
public Long getTimestamp()
-
setTimestamp
public void setTimestamp(Long timestamp)
-
-