Cross Signing Service
Functions
Link copied to clipboard
Do we have all our private cross signing keys in storage?
Link copied to clipboard
Can we sign our other devices or other users?
Link copied to clipboard
abstract suspend fun checkDeviceTrust( otherUserId: String, otherDeviceId: String, locallyTrusted: Boolean?): DeviceTrustResult
Content copied to clipboard
Check if a device is trusted
Link copied to clipboard
abstract fun checkOtherMSKTrusted(myCrossSigningInfo: MXCrossSigningInfo?, otherInfo: MXCrossSigningInfo?): UserTrustResult
Content copied to clipboard
Link copied to clipboard
abstract fun checkSelfTrust(myCrossSigningInfo: MXCrossSigningInfo?, myDevices: List<CryptoDeviceInfo>?): UserTrustResult
Content copied to clipboard
Link copied to clipboard
abstract suspend fun checkTrustAndAffectedRoomShields(userIds: List<String>)
Content copied to clipboard
Link copied to clipboard
abstract suspend fun checkTrustFromPrivateKeys( masterKeyPrivateKey: String?, uskKeyPrivateKey: String?, sskPrivateKey: String?): UserTrustResult
Content copied to clipboard
Inject the private cross signing keys, likely from backup, into our store.
Link copied to clipboard
abstract suspend fun checkUserTrust(otherUserId: String): UserTrustResult
Content copied to clipboard
Will not force a download of the key, but will verify signatures trust chain. Checks that my trusted user key has signed the other user UserKey
Link copied to clipboard
Get our own private cross signing keys.
Link copied to clipboard
abstract fun getLiveCrossSigningKeys(userId: String): LiveData<Optional<MXCrossSigningInfo>>
Content copied to clipboard
Link copied to clipboard
abstract fun getLiveCrossSigningPrivateKeys(): LiveData<Optional<PrivateKeysInfo>>
Content copied to clipboard
Link copied to clipboard
Get our own public cross signing keys.
Link copied to clipboard
abstract suspend fun getUserCrossSigningKeys(otherUserId: String): MXCrossSigningInfo?
Content copied to clipboard
Get the public cross signing keys for the given user.
Link copied to clipboard
abstract suspend fun initializeCrossSigning(uiaInterceptor: UserInteractiveAuthInterceptor?)
Content copied to clipboard
Initialize cross signing for this user. Users needs to enter credentials
Link copied to clipboard
Does our own user have a valid cross signing identity uploaded.
Link copied to clipboard
Is our published identity trusted.
Link copied to clipboard
Link copied to clipboard
Mark our own master key as trusted.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract suspend fun shieldForGroup(userIds: List<String>): RoomEncryptionTrustLevel
Content copied to clipboard
Link copied to clipboard
Sign one of your devices and upload the signature.