get

actual open override fun get(key: String): SecureLocalStorageResult

Retrieves the value associated with the given key from secure local storage.

If the key is found, the encrypted value is decrypted and returned. If the key is not found or an error occurs during retrieval, an appropriate failure result is returned.

Return

A SecureLocalStorageResult instance containing either the decrypted data (SecureLocalStorageResult.Success) or an error (SecureLocalStorageResult.Failure).

Parameters

key

The key for the entry to retrieve from secure local storage.


actual open override fun get(key: KeyValueStorageKeys): SecureLocalStorageResult

Retrieves a value associated with the provided key.

Return

A SecureLocalStorageResult representing the result of the operation, which could be success with the fetched value or a failure indicating an error.

Parameters

key

The key of type KeyValueStorageKeys used to fetch the corresponding value from storage.

expect open override fun get(key: String): SecureLocalStorageResult

Retrieves the value associated with the given key from the secure local storage.

Return

A SecureLocalStorageResult indicating the result of the retrieval operation. Returns SecureLocalStorageResult.Success if the value is successfully retrieved, or SecureLocalStorageResult.Failure if the operation fails.

Parameters

key

The key whose associated value is to be retrieved.


expect open override fun get(key: KeyValueStorageKeys): SecureLocalStorageResult

Retrieves the corresponding value associated with the given key from the secure local storage.

Return

A SecureLocalStorageResult instance representing the outcome of the retrieval operation. It could either be a success containing the retrieved data or a failure with an appropriate error.

Parameters

key

The key of type KeyValueStorageKeys used to identify the stored value.