Class RoomKeyContent
- java.lang.Object
-
- io.github.ma1uta.matrix.event.content.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.
-
-
Constructor Summary
Constructors Constructor Description RoomKeyContent()
-
Method Summary
Modifier and Type Method Description String
getAlgorithm()
String
getRoomId()
String
getSessionId()
String
getSessionKey()
void
setAlgorithm(String algorithm)
void
setRoomId(String roomId)
void
setSessionId(String sessionId)
void
setSessionKey(String sessionKey)
-
-
-
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.
-
-
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)
-
-