Class OlmEncryptedContent
- java.lang.Object
-
- io.github.ma1uta.matrix.event.content.RoomEncryptedContent
-
- io.github.ma1uta.matrix.event.encrypted.OlmEncryptedContent
-
- All Implemented Interfaces:
EventContent
public class OlmEncryptedContent extends RoomEncryptedContent
Olm encrypted message.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ALGORITHM
Olm algorithm version.private Map<String,CiphertextInfo>
ciphertext
Required.
-
Constructor Summary
Constructors Constructor Description OlmEncryptedContent()
-
Method Summary
Modifier and Type Method Description String
getAlgorithm()
Required.Map<String,CiphertextInfo>
getCiphertext()
void
setCiphertext(Map<String,CiphertextInfo> 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
Olm algorithm version.- See Also:
- Constant Field Values
-
ciphertext
private Map<String,CiphertextInfo> ciphertext
Required. The encrypted content of the event. A map from the recipient Curve25519 identity key to ciphertext information. For more details, see Messaging Algorithms.
-
-
Method Detail
-
getCiphertext
public Map<String,CiphertextInfo> getCiphertext()
-
setCiphertext
public void setCiphertext(Map<String,CiphertextInfo> ciphertext)
-
getAlgorithm
public String getAlgorithm()
Description copied from class:RoomEncryptedContent
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"].- Specified by:
getAlgorithm
in classRoomEncryptedContent
- Returns:
- algorithm.
-
-