IWRecoveryManager

API - IWRecoveryManager

ENCRYPTION_TYPE

public enum ENCRYPTION_TYPE {
  AES_128(0), AES_256(1);
}

Description

  • Encryption type for back-up and recovery

BACKUP_OPTION

public enum BACKUP_OPTION {
  TOTAL(0),
  DID_DOCUMENT(1<<0),
  CLAIM(1<<1),
  KEY(1<<2);

Description

  • The data type for back-up and recovery

IWRecoveryManager

public IWRecoveryManager(IWKeyManager keyManager)

Description

  • Constructor

Parameter

Type

Name

Description

IWKeyManager

keyManager

Instance of IWKeyManager

backUpStoredData(Deprecated)

public void backUpStoredData(int range, ENCRYPTION_TYPE type, String key, String[] didPaths, String extraString, BackUpCallback callback)

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

public void backUpStoredData(int range, ENCRYPTION_TYPE type, byte[] key, String[] didPaths, String extraString, BackUpCallback callback)

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)

public void restoreBackedUpByte(byte[] backedUpByte, String key, String didPath, RestoreCallback callback)

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

public void restoreBackedUpByte(byte[] backedUpByte, byte[] key, String didPath, RestoreCallback callback)

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