IWRecoveryManager
This framework is written with the Objective-C
Constructor
Constructor
initWithName
Description
Initialize the IWRecoveryManager object by letting IWKeyManager be a parameter.
Parameters
Type
Parameter
Description
IWKeyManager
keyManager
IWKeyManager object
Return Value
Initialized IWRecoveryManager object
Back Up
backUpStoredData
Description
Creates recoverable back-up data
Status of Key Manager must be unlocked state
Parameters
Type
Parameter
Description
BACKUP_OPTION
range
Scope of recovery
encryptionType
type
encryption type
NSString
key
Encryption key
NSString
extraString
additional data to back-up. Cannot input a nil
successBlock
successBlock
Back-up completion block
failureBlock
failureBlock
Back-up failure block
successBlock
Type
Parameter
Description
NSString
backedUpData
backed-up data
failureBlock
Type
Parameter
Description
NSString
errorMessage
failure message
NSUInteger
errorCode
failure error code
For Errorcode and other relevant message, please refer to BACKUP_Option and EXCRYPTION_TYPE.
Restore
restoreBackedUpData
Description
Restoes data by using the recoverable back-up data. Status of Key Manager must be in unlocked status.
Parameters
Type
Parameter
Description
NSData
backedUpData
Scope of recovery
NSString
key
Recovery key
successBlock
successBlock
Recovery completion block
failureBlock
failureBlock
Recovery failure block
successBlock
Type
Parameter
Description
NSString
extraString
Additional data message to back up, it may be nil
failureBlock
Type
Parameter
Description
NSString
errorMessage
failure message
NSUInteger
errorCode
failure error code
For error code and message, please refer to IWErrorDef.h.
Last updated