Namespace: secureStorage

ENABLE. secureStorage

Encrypted cross-domain persistent storage functions. Combines cross-domain access with data encryption.

  • Use when storing sensitive data across domains.
  • Values that can be stored include: strings, numbers, booleans, plain objects, and arrays.
  • Choose over persistStorage for:
    • Sensitive information protection.
    • Compliance with data security laws.
  • Choose persistStorage for:
    • Non-sensitive data or when performance is critical.

Methods

staticENABLE.secureStorage.clear(){Object}

storage.js, line 206

Remove all stored values.

Since:
  • 1.0.0
Returns:
Name Type Description
object Object
Name Type Description
status_code String ENABLE.status.SUCCESS

staticENABLE.secureStorage.getItem(Key){Object}

storage.js, line 151

Return stored item associated with key provided.

Name Type Description
Key String

The key referencing the value to be returned.

Since:
  • 1.0.0
Returns:
Name Type Description
object Object
Name Type Description
status_code String ENABLE.status.SUCCESS
result Boolean | String | Number | Array | Object value associated with the key, null when not found

staticENABLE.secureStorage.removeItem(Key){Object}

storage.js, line 191

Remove stored value associated with key provided.

Name Type Description
Key String

key for looking up value

Since:
  • 1.0.0
Returns:
Name Type Description
object Object
Name Type Description
status_code String ENABLE.status.SUCCESS or ENABLE.status.INVALID_ARGUMENT

staticENABLE.secureStorage.setItem(Key, Value){Object}

storage.js, line 173

Update/Store the item associate with key provided.

Name Type Description
Key String

The key of the item to be replaced with value.

Value Boolean | String | Number | Array | Object

value to be updated or/and stored.

Since:
  • 1.0.0
Returns:
Name Type Description
object Object
Name Type Description
status_code String ENABLE.status.SUCCESS or ENABLE.status.INVALID_ARGUMENT