Interface UserKeyService
-
- All Implemented Interfaces:
public interface UserKeyService
-
-
Method Summary
Modifier and Type Method Description abstract KeyFoundStatusgetKeyStatus(String userId)Fetch the key existence status in device. abstract List<UserKey>getAll()Get all the user keys in device. abstract Unitdelete(UserKey userKey, Boolean forceDelete)Delete user key from local storage and also remotely from Server. -
-
Method Detail
-
getKeyStatus
abstract KeyFoundStatus getKeyStatus(String userId)
Fetch the key existence status in device.
- Parameters:
userId- id optional and received from server
-
delete
abstract Unit delete(UserKey userKey, Boolean forceDelete)
Delete user key from local storage and also remotely from Server. By default, if failed to delete from server, local storage will not be deleted, by providing forceDelete to true, it will also delete local keys if server call is failed.
- Parameters:
userKey- The UserKey to be deletedforceDelete- Default to false, true will delete local keys even server key removal is failed.
-
-
-
-