Class DeviceKeys
- java.lang.Object
-
- io.github.ma1uta.matrix.client.model.encryption.DeviceKeys
-
public class DeviceKeys extends Object
Device Keys.
-
-
Field Summary
Fields Modifier and Type Field Description private List<String>algorithmsRequired.private StringdeviceIdRequired.private Map<String,String>keysRequired.private Map<String,Map<String,String>>signaturesRequired.private UnsignedDeviceInfounsignedDeviceInfoAdditional data added to the device key information by intermediate servers, and not covered by the signatures.private StringuserIdRequired.
-
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()UnsignedDeviceInfogetUnsignedDeviceInfo()StringgetUserId()voidsetAlgorithms(List<String> algorithms)voidsetDeviceId(String deviceId)voidsetKeys(Map<String,String> keys)voidsetSignatures(Map<String,Map<String,String>> signatures)voidsetUnsignedDeviceInfo(UnsignedDeviceInfo unsignedDeviceInfo)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.
-
signatures
private Map<String,Map<String,String>> signatures
Required. Signatures for the device key object. A map from user ID, to a map from (algorithm):(device_id) to the signature. The signature is calculated using the process described at Signing JSON.
-
unsignedDeviceInfo
private UnsignedDeviceInfo unsignedDeviceInfo
Additional data added to the device key information by intermediate servers, and not covered by the signatures.
-
-
Method Detail
-
getUserId
public String getUserId()
-
setUserId
public void setUserId(String userId)
-
getDeviceId
public String getDeviceId()
-
setDeviceId
public void setDeviceId(String deviceId)
-
getUnsignedDeviceInfo
public UnsignedDeviceInfo getUnsignedDeviceInfo()
-
setUnsignedDeviceInfo
public void setUnsignedDeviceInfo(UnsignedDeviceInfo unsignedDeviceInfo)
-
-