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
persistStoragefor:- Sensitive information protection.
- Compliance with data security laws.
- Choose
persistStoragefor:- 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 objectObject Name Type Description status_codeString ENABLE.status.SUCCESS -
staticENABLE.secureStorage.getItem(Key){Object}
storage.js, line 151 -
Return stored item associated with key provided.
Name Type Description KeyString The key referencing the value to be returned.
- Since:
- 1.0.0
Returns:
Name Type Description objectObject Name Type Description status_codeString ENABLE.status.SUCCESSresultBoolean | 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 KeyString key for looking up value
- Since:
- 1.0.0
Returns:
Name Type Description objectObject Name Type Description status_codeString ENABLE.status.SUCCESSorENABLE.status.INVALID_ARGUMENT -
staticENABLE.secureStorage.setItem(Key, Value){Object}
storage.js, line 173 -
Update/Store the item associate with key provided.
Name Type Description KeyString The key of the item to be replaced with value.
ValueBoolean | String | Number | Array | Object value to be updated or/and stored.
- Since:
- 1.0.0
Returns:
Name Type Description objectObject Name Type Description status_codeString ENABLE.status.SUCCESSorENABLE.status.INVALID_ARGUMENT