Class DeviceKeys
- java.lang.Object
-
- io.github.ma1uta.matrix.server.model.federation.edu.content.nested.DeviceKeys
-
- Direct Known Subclasses:
DeviceKeysWithUnsigned
public class DeviceKeys extends Object
Device keys.
-
-
Constructor Summary
Constructors Constructor Description DeviceKeys()
-
Method Summary
Modifier and Type Method Description List<String>getAlgorithms()StringgetDeviceId()Map<String,String>getKeys()Map<String,Map<String,String>>getSignatures()StringgetUserId()voidsetAlgorithms(List<String> algorithms)voidsetDeviceId(String deviceId)voidsetKeys(Map<String,String> keys)voidsetSignatures(Map<String,Map<String,String>> signatures)voidsetUserId(String userId)
-
-
-
Field Detail
-
userId
private String userId
Required. The ID of the user the device belongs to. Must match the user ID used when logging in.
-
deviceId
private String deviceId
Required. The ID of the device these keys belong to. Must match the device ID used when logging in.
-
algorithms
private List<String> algorithms
Required. The encryption algorithms supported by this device.
-
keys
private Map<String,String> keys
Required. Public identity keys. The names of the properties should be in the format <algorithm>:<device_id>. The keys themselves should be encoded as specified by the key algorithm.
-
-