IWRecoveryManager
API - IWRecoveryManager
ENCRYPTION_TYPE
Description
Encryption type for back-up and recovery
BACKUP_OPTION
Description
The data type for back-up and recovery
IWRecoveryManager
Description
Constructor
Parameter
Type
Name
Description
IWKeyManager
keyManager
Instance of IWKeyManager
backUpStoredData(Deprecated)
Description
Back-up the stored data with selected option parameters
Constraint: Only works when Key Manager is on a unlock status
Parameter
Type
Name
Description
int
range
back-up range
ENCRYPTION_TYPE
type
encryption type
String
key
encryption key
String[]
didPaths
Canonical paths of the DID documents
String
extraString
Extra String to be backed up
BackUpCallback
callback
Callback
BackUpCallback
success(byte[] backedUpData)
Type
Name
Description
byte[]
backedUpData
backed-up data
failure(IWErrorCode errorCode)
Type
Name
Description
IWErrorCode
errorCode
occurred Error Code
backUpStoredData
Description
Back-up the stored data with selected option parameters
Constraint: Only works when Key Manager is on a unlock status
Parameter
Type
Name
Description
int
range
back-up range
ENCRYPTION_TYPE
type
encryption type
byte[]
key
encryption key
String[]
didPaths
Canonical paths of the DID documents
String
extraString
Extra String to be backed up
BackUpCallback
callback
Callback
BackUpCallback
success(byte[] backedUpData)
Type
Name
Description
byte[]
backedUpData
backed-up data
failure(IWErrorCode errorCode)
Type
Name
Description
IWErrorCode
errorCode
occurred Error Code
restoreBackedUpData(Deprecated)
Description
Restores the backed-up data
Constraint: Only works when Key Manager is on a unlock status
Parameter
Type
Name
Description
byte[]
backedUpByte
Backed-up data byte array
String
key
decryption key
String
didPath
DID path to be restored
RestoreCallback
callback
Callback
RestoreCallback
success(String extraString)
Type
Name
Description
String
extraString
Backed-up data byte array
failure(IWErrorCode errorCode)
Type
Name
Description
IWErrorCode
errorCode
occured Error Code
restoreBackedUpData
Description
Restores the backed-up data
Constraint: Only works when Key Manager is on a unlock status
Parameter
Type
Name
Description
byte[]
backedUpByte
Backed-up data byte array
byte[]
key
decryption key
String
didPath
DID path to be restored
RestoreCallback
callback
Callback
RestoreCallback
success(String extraString)
Type
Name
Description
String
extraString
Backed-up data byte array
failure(IWErrorCode errorCode)
Type
Name
Description
IWErrorCode
errorCode
occured Error Code
Last updated