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 StringfromDeviceRequired.private List<String>methodsRequired.private LongtimestampRequired.private StringtransactionIdRequired.
-
Constructor Summary
Constructors Constructor Description KeyVerificationRequestContent()
-
Method Summary
Modifier and Type Method Description StringgetFromDevice()List<String>getMethods()LonggetTimestamp()StringgetTransactionId()voidsetFromDevice(String fromDevice)voidsetMethods(List<String> methods)voidsetTimestamp(Long timestamp)voidsetTransactionId(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)
-
-