Device
Defined in: src/models/device.ts:32
Information on a user’s device, as returned by crypto-api!CryptoApi.getUserDeviceInfo.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Device(
opts):Device
Defined in: src/models/device.ts:57
Parameters
Section titled “Parameters”DeviceParameters
Returns
Section titled “Returns”Device
Properties
Section titled “Properties”algorithms
Section titled “algorithms”
readonlyalgorithms:string[]
Defined in: src/models/device.ts:40
list of algorithms supported by this device
dehydrated
Section titled “dehydrated”
readonlydehydrated:boolean=false
Defined in: src/models/device.ts:55
whether the device is a dehydrated device
deviceId
Section titled “deviceId”
readonlydeviceId:string
Defined in: src/models/device.ts:34
id of the device
displayName?
Section titled “displayName?”
readonlyoptionaldisplayName?:string
Defined in: src/models/device.ts:52
display name of the device
readonlykeys:Map<string,string>
Defined in: src/models/device.ts:43
a map from <key type>:<id> -> <base64-encoded key>
signatures
Section titled “signatures”
readonlysignatures:Map<string,Map<string,string>>
Defined in: src/models/device.ts:49
a map <userId, map<algorithm:device_id, signature>>
userId
Section titled “userId”
readonlyuserId:string
Defined in: src/models/device.ts:37
id of the user that owns the device
verified
Section titled “verified”
readonlyverified:DeviceVerification
Defined in: src/models/device.ts:46
whether the device has been verified/blocked by the user
Methods
Section titled “Methods”getFingerprint()
Section titled “getFingerprint()”getFingerprint():
string|undefined
Defined in: src/models/device.ts:73
Get the fingerprint for this device (ie, the Ed25519 key)
Returns
Section titled “Returns”string | undefined
base64-encoded fingerprint of this device
getIdentityKey()
Section titled “getIdentityKey()”getIdentityKey():
string|undefined
Defined in: src/models/device.ts:82
Get the identity key for this device (ie, the Curve25519 key)
Returns
Section titled “Returns”string | undefined
base64-encoded identity key of this device