Class MegolmEncryptedContent
- java.lang.Object
-
- io.github.ma1uta.matrix.event.content.RoomEncryptedContent
-
- io.github.ma1uta.matrix.event.encrypted.MegolmEncryptedContent
-
- All Implemented Interfaces:
EventContent
public class MegolmEncryptedContent extends RoomEncryptedContent
Megolm encrypted message.
-
-
Field Summary
Fields Modifier and Type Field Description static StringALGORITHMMegolm algorithm version.private StringciphertextRequired.
-
Constructor Summary
Constructors Constructor Description MegolmEncryptedContent()
-
Method Summary
Modifier and Type Method Description StringgetAlgorithm()Required.StringgetCiphertext()voidsetCiphertext(String ciphertext)-
Methods inherited from class io.github.ma1uta.matrix.event.content.RoomEncryptedContent
getDeviceId, getSenderKey, getSessionId, setDeviceId, setSenderKey, setSessionId
-
-
-
-
Field Detail
-
ALGORITHM
public static final String ALGORITHM
Megolm algorithm version.- See Also:
- Constant Field Values
-
ciphertext
private String ciphertext
Required. The encrypted content of the event. The encrypted payload itself.
-
-
Method Detail
-
getCiphertext
public String getCiphertext()
-
setCiphertext
public void setCiphertext(String ciphertext)
-
getAlgorithm
public String getAlgorithm()
Description copied from class:RoomEncryptedContentRequired. 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"].- Specified by:
getAlgorithmin classRoomEncryptedContent- Returns:
- algorithm.
-
-