Properties
Optional
cacheSecretStorageKey
Type declaration
-
- (keyId: string, keyInfo: ISecretStorageKeyInfo, key: Uint8Array): void
-
Parameters
-
keyId: string
-
-
key: Uint8Array
Returns void
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
get
Dehydration
Key
?: ((keyInfo
: ISecretStorageKeyInfo, checkFunc
: ((key
: Uint8Array) => void)) => Promise<Uint8Array>)
Type declaration
-
- (keyInfo: ISecretStorageKeyInfo, checkFunc: ((key: Uint8Array) => void)): Promise<Uint8Array>
-
Parameters
-
-
checkFunc: ((key: Uint8Array) => void)
-
- (key: Uint8Array): void
-
Returns void
Returns Promise<Uint8Array>
Optional
getSecretStorageKey
get
Secret
Storage
Key
?: ((keys
: { keys
: Record<string, ISecretStorageKeyInfo>; }, name
: string) => Promise<null | [string, Uint8Array]>)
Type declaration
-
- (keys: {
keys: Record<string, ISecretStorageKeyInfo>;
}, 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<string>)
Type declaration
-
- (userId: string, deviceId: string, requestId: string, secretName: string, deviceTrust: DeviceTrustLevel): Promise<string>
-
Parameters
-
userId: string
-
deviceId: string
-
requestId: string
-
secretName: string
-
Returns Promise<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[]>