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()
String
getDeviceId()
Map<String,String>
getKeys()
Map<String,Map<String,String>>
getSignatures()
String
getUserId()
void
setAlgorithms(List<String> algorithms)
void
setDeviceId(String deviceId)
void
setKeys(Map<String,String> keys)
void
setSignatures(Map<String,Map<String,String>> signatures)
void
setUserId(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.
-
-