Properties
Optional
cacheSecretStorageKey
Optional
getBackupKey
getBackupKey?: (() => Promise<Uint8Array>)
Type declaration
-
- (): Promise<Uint8Array>
-
Returns Promise<Uint8Array>
Optional
getCrossSigningKey
getCrossSigningKey?: ((keyType: string, pubKey: string) => Promise<null | Uint8Array>)
Type declaration
-
- (keyType: string, pubKey: string): Promise<null | Uint8Array>
-
Parameters
-
keyType: string
-
pubKey: string
Returns Promise<null | Uint8Array>
Optional
getDehydrationKey
Type declaration
-
- (keyInfo: SecretStorageKeyDescriptionAesV1, checkFunc: ((key: Uint8Array) => void)): Promise<Uint8Array>
-
Parameters
-
-
checkFunc: ((key: Uint8Array) => void)
-
- (key: Uint8Array): void
-
Returns void
Returns Promise<Uint8Array>
Optional
getSecretStorageKey
Type declaration
-
- (keys: {
keys: Record<string, SecretStorageKeyDescriptionAesV1>;
}, name: string): Promise<null | [string, Uint8Array]>
-
Returns Promise<null | [string, Uint8Array]>
Optional
onSecretRequested
on
Secret
Requested
?: ((userId
: string, deviceId
: string, requestId
: string, secretName
: string, deviceTrust
: DeviceTrustLevel) => Promise<undefined | string>)
Type declaration
-
- (userId: string, deviceId: string, requestId: string, secretName: string, deviceTrust: DeviceTrustLevel): Promise<undefined | string>
-
Parameters
-
userId: string
-
deviceId: string
-
requestId: string
-
secretName: string
-
Returns Promise<undefined | string>
Optional
saveCrossSigningKeys
saveCrossSigningKeys?: ((keys: Record<string, Uint8Array>) => void)
Type declaration
-
- (keys: Record<string, Uint8Array>): void
-
Parameters
-
keys: Record<string, Uint8Array>
Returns void
Optional
shouldUpgradeDeviceVerifications
shouldUpgradeDeviceVerifications?: ((users: Record<string, any>) => Promise<string[]>)
Type declaration
-
- (users: Record<string, any>): Promise<string[]>
-
Parameters
-
users: Record<string, any>
Returns Promise<string[]>