📃
OmniOne Developer Site
  • Introduction
  • Manager console guide
    • To begin with...
      • Wallet Settings
      • Select an Account
      • The Issuer/SP account creation
      • Issue access token for the OmniOne Agent
    • Issuer Console
      • Claim
      • VC Type
      • VC Format
      • Issue the VC Information
      • My request list
    • SP Console
      • Service List
      • Token Transaction History
      • My service request
  • Server system construction
    • To begin with...
      • Server Wallet creation and Key settings
      • Collect the Issuer and SP's DID
      • application.properties settings
    • Server default environment configuration per IDE
      • Spring Tool Suite 4
      • IntelliJ IDEA
    • Building the Issuer system
      • Issuer server guide(JAVA)
    • Building the SP system
      • SP server guide (JAVA)
  • Checking Blockchain data
    • Check Agent API
      • bp
      • Committee
      • DID
      • executor
      • key
      • pDID
      • player
      • policy
      • txinfo
      • txissue
      • vc
      • version
      • response codes
  • SDK instruction guide
    • Core SDK Guide
      • Java Wallet
        • IWKeyManager
        • IWDIDManager
        • IWRecoveryManager
        • ZkpException
        • IWException
      • iOS Wallet
        • IWKeyManager
        • IWDidManager
        • IWClaimManager
        • IWRecoveryManager
        • IWErrorManager
        • Enum
    • Server SDK Guide
      • Java
        • ServerInfo
        • IssuerApi
        • SpApi
        • VcResult
        • VcInitParam
        • VCRegParam
        • VcVerifyParam
        • SpProfileParam
    • Omni App Link SDK
      • Server
      • Android
      • IOS
  • Node creation
    • Full Node creation
      • Full Node by using Docker
        • Docker Installation
        • Building Full Node
        • Full Node settings
      • Installation type Full Node
        • Full Node installation
    • BP Node creation
      • BP Node by using Docker
        • Docker Installation
        • Building BP Node
        • BP Node settings
          • keosd/BP Node executing simultaneously
      • Installation type BP
        • Node Installation
        • Executing Node
        • Node settings
        • BP Vote
Powered by GitBook
On this page
  • Constructor
  • Constructor
  • initWithName
  • Back Up
  • backUpStoredData
  • Restore
  • restoreBackedUpData

Was this helpful?

  1. SDK instruction guide
  2. Core SDK Guide
  3. iOS Wallet

IWRecoveryManager

This framework is written with the Objective-C

Constructor

Constructor

initWithName

- (instancetype)initWithKeyManager:(IWKeyManager *)keyManager

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

- (void)backUpStoredData:(BACKUP_OPTION)range
          encryptionType:(ENCRYPTION_TYPE)type
               backUpKey:(NSString *)key
             extraString:(nullable NSString *)extraString
            successBlock:(void(^)(NSData *backedUpData))successBlock
            failureBlock:(void(^)(NSString *errorMessage,NSUInteger errorCode))failureBlock

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

- (void)restoreBackedUpData:(NSData *)backedUpData
                        key:(NSString *)key
               successBlock:(void(^)(NSString * _Nullable extraString))successBlock
               failureBlock:(void(^)(NSString *errorMessage, NSUInteger errorCode))failureBlock

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.

PreviousIWClaimManagerNextIWErrorManager

Last updated 4 years ago

Was this helpful?