Class RoomEncryptionContent

  • All Implemented Interfaces:
    EventContent

    public class RoomEncryptionContent
    extends Object
    implements EventContent
    State Event.
    state_key: A zero-length string.
    Defines how messages sent in this room should be encrypted.
    • Field Detail

      • algorithm

        private String algorithm
        Required. The encryption algorithm to be used to encrypt messages sent in this room. Must be 'm.megolm.v1.aes-sha2'.
      • rotationPeriodMs

        private Long rotationPeriodMs
        How long the session should be used before changing it. 604800000 (a week) is the recommended default.
      • rotationPeriodMsgs

        private Long rotationPeriodMsgs
        How many messages should be sent before changing the session. 100 is the recommended default.
    • Constructor Detail

      • RoomEncryptionContent

        public RoomEncryptionContent()
    • Method Detail

      • getAlgorithm

        public String getAlgorithm()
      • setAlgorithm

        public void setAlgorithm​(String algorithm)
      • getRotationPeriodMs

        public Long getRotationPeriodMs()
      • setRotationPeriodMs

        public void setRotationPeriodMs​(Long rotationPeriodMs)
      • getRotationPeriodMsgs

        public Long getRotationPeriodMsgs()
      • setRotationPeriodMsgs

        public void setRotationPeriodMsgs​(Long rotationPeriodMsgs)