Class RoomKeyRequestContent

  • All Implemented Interfaces:
    EventContent

    public class RoomKeyRequestContent
    extends Object
    implements EventContent
    This event type is used to request keys for end-to-end encryption. It is sent as an unencrypted to-device event.
    • Field Detail

      • body

        private RequestedKeyInfo body
        Information about the requested key. Required when action is request.
      • action

        private String action
        Required. One of: ["request", "cancel_request"].
      • requestingDeviceId

        private String requestingDeviceId
        Required. ID of the device requesting the key.
      • requestId

        private String requestId
        Required. A random string uniquely identifying the request for a key. If the key is requested multiple times, it should be reused. It should also reused in order to cancel a request.
    • Constructor Detail

      • RoomKeyRequestContent

        public RoomKeyRequestContent()
    • Method Detail

      • getAction

        public String getAction()
      • setAction

        public void setAction​(String action)
      • getRequestingDeviceId

        public String getRequestingDeviceId()
      • setRequestingDeviceId

        public void setRequestingDeviceId​(String requestingDeviceId)
      • getRequestId

        public String getRequestId()
      • setRequestId

        public void setRequestId​(String requestId)