Class RoomEncryptionContent
- java.lang.Object
-
- io.github.ma1uta.matrix.event.content.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 Summary
Fields Modifier and Type Field Description private String
algorithm
Required.private Long
rotationPeriodMs
How long the session should be used before changing it. 604800000 (a week) is the recommended default.private Long
rotationPeriodMsgs
How many messages should be sent before changing the session. 100 is the recommended default.
-
Constructor Summary
Constructors Constructor Description RoomEncryptionContent()
-
Method Summary
Modifier and Type Method Description String
getAlgorithm()
Long
getRotationPeriodMs()
Long
getRotationPeriodMsgs()
void
setAlgorithm(String algorithm)
void
setRotationPeriodMs(Long rotationPeriodMs)
void
setRotationPeriodMsgs(Long rotationPeriodMsgs)
-
-
-
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.
-
-
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)
-
-