Class RoomEncryptedContent
- java.lang.Object
-
- io.github.ma1uta.matrix.event.content.RoomEncryptedContent
-
- All Implemented Interfaces:
EventContent
- Direct Known Subclasses:
MegolmEncryptedContent
,OlmEncryptedContent
,RawEncryptedContent
public abstract class RoomEncryptedContent extends Object implements EventContent
This event type is used when sending encrypted events. It can be used either within a room (in which case it will have all of the Room Event fields), or as a to-device event.
-
-
Constructor Summary
Constructors Constructor Description RoomEncryptedContent()
-
Method Summary
Modifier and Type Method Description abstract String
getAlgorithm()
Required.String
getDeviceId()
String
getSenderKey()
String
getSessionId()
void
setDeviceId(String deviceId)
void
setSenderKey(String senderKey)
void
setSessionId(String sessionId)
-
-
-
Method Detail
-
getAlgorithm
public abstract String getAlgorithm()
Required. The encryption algorithm used to encrypt this event. The value of this field determines which other properties will be present. One of: ["m.olm.v1.curve25519-aes-sha2", "m.megolm.v1.aes-sha2"].- Returns:
- algorithm.
-
getSenderKey
public String getSenderKey()
-
setSenderKey
public void setSenderKey(String senderKey)
-
getDeviceId
public String getDeviceId()
-
setDeviceId
public void setDeviceId(String deviceId)
-
getSessionId
public String getSessionId()
-
setSessionId
public void setSessionId(String sessionId)
-
-