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>
algorithms
Required.private String
deviceId
Required.private Map<String,String>
keys
Required.private Map<String,Map<String,String>>
signatures
Required.private UnsignedDeviceInfo
unsignedDeviceInfo
Additional data added to the device key information by intermediate servers, and not covered by the signatures.private String
userId
Required.
-
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()
UnsignedDeviceInfo
getUnsignedDeviceInfo()
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
setUnsignedDeviceInfo(UnsignedDeviceInfo unsignedDeviceInfo)
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.
-
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)
-
-