Class RoomKeyContent

  • All Implemented Interfaces:
    EventContent

    public class RoomKeyContent
    extends Object
    implements EventContent
    This event type is used to exchange keys for end-to-end encryption. Typically it is encrypted as an m.room.encrypted event, then sent as a to-device event.
    • Field Detail

      • algorithm

        private String algorithm
        Required. The encryption algorithm the key in this event is to be used with. Must be 'm.megolm.v1.aes-sha2'.
      • roomId

        private String roomId
        Required. The room where the key is used.
      • sessionId

        private String sessionId
        Required. The ID of the session that the key is for.
      • sessionKey

        private String sessionKey
        Required. The key to be exchanged.
    • Constructor Detail

      • RoomKeyContent

        public RoomKeyContent()
    • Method Detail

      • getAlgorithm

        public String getAlgorithm()
      • setAlgorithm

        public void setAlgorithm​(String algorithm)
      • getRoomId

        public String getRoomId()
      • setRoomId

        public void setRoomId​(String roomId)
      • getSessionId

        public String getSessionId()
      • setSessionId

        public void setSessionId​(String sessionId)
      • getSessionKey

        public String getSessionKey()
      • setSessionKey

        public void setSessionKey​(String sessionKey)