Interface UserKeyService

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract KeyFoundStatus getKeyStatus(String userId) Fetch the key existence status in device.
      abstract List<UserKey> getAll() Get all the user keys in device.
      abstract Unit delete(UserKey userKey, Boolean forceDelete) Delete user key from local storage and also remotely from Server.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 deleted
        forceDelete - Default to false, true will delete local keys even server key removal is failed.