Class 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 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.
      • methods

        private List<String> methods
        Required. The verification methods supported by the sender.
      • 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.
    • Constructor Detail

      • KeyVerificationRequestContent

        public KeyVerificationRequestContent()
    • Method Detail

      • getFromDevice

        public String getFromDevice()
      • setFromDevice

        public void setFromDevice​(String fromDevice)
      • getTransactionId

        public String getTransactionId()
      • setTransactionId

        public void setTransactionId​(String transactionId)
      • setMethods

        public void setMethods​(List<String> methods)
      • getTimestamp

        public Long getTimestamp()
      • setTimestamp

        public void setTimestamp​(Long timestamp)