Class DeviceKeys


  • public class DeviceKeys
    extends Object
    Device Keys.
    • 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.
    • Constructor Detail

      • DeviceKeys

        public DeviceKeys()