public interface DataRepository
Data Repository used by wallet to store application instances, credentials, revocation signatures etc. Wallet automatically initializes ``DataRepositoryImpl`` with default implementation of ``StorageManagerContract``
  • Method Details

    • init

      void init(StorageManagerContract storageManager)
      Initialize DataRepository with implementation of StorageManagerContract
      Parameters:
      storageManager - : Implementation of StorageManagerContract
      See Also:
    • saveCredential

      void saveCredential(com.pingidentity.did.sdk.types.Claim credential)
      Saves credential to storage
      Parameters:
      credential - : Claim to save
    • getCredential

      com.pingidentity.did.sdk.types.Claim getCredential(String id)
      Get Credential for id
      Parameters:
      id - : String id for stored Claim
      Returns:
      Claim if found, null otherwise
    • saveCredentialReference

      void saveCredentialReference(com.pingidentity.did.sdk.types.ClaimReference credentialReference)
      Save reference for revoked credentials
      Parameters:
      credentialReference - : ClaimReference
    • getCredentialReference

      com.pingidentity.did.sdk.types.ClaimReference getCredentialReference(String id)
      Get reference for revoked credentials
      Parameters:
      id - : String id for stored ClaimReference
      Returns:
      ClaimReference if found, null otherwise
    • isCredentialRevoked

      boolean isCredentialRevoked(String credentialId)
      Check if a credential had been revoked
      Parameters:
      credentialId - : String credential id
      Returns:
      boolean: True if credential revoked, False otherwise
    • deleteCredential

      void deleteCredential(String id)
      Delete credential from storage
      Parameters:
      id - : String id for the credential to delete
    • getAllCredentials

      List<com.pingidentity.did.sdk.types.Claim> getAllCredentials()
      Retrieve all stored credentials
      Returns:
      List of Claim objects.
    • subscribeCredentialsChange

      androidx.lifecycle.MutableLiveData<List<com.pingidentity.did.sdk.types.Claim>> subscribeCredentialsChange()
    • saveCredentialIds

      void saveCredentialIds(Set<String> credentialIds)
    • saveCredentialReferenceIds

      void saveCredentialReferenceIds(Set<String> credentialReferenceIds)
    • getRegions

      Set<PingOneRegion> getRegions()
      Retrieve all active PingOneRegions used by wallet
      Returns:
      Set of PingOneRegion objects
    • saveRegions

      void saveRegions(Set<PingOneRegion> pingOneRegions)
    • getStorageErrorHandler

      StorageErrorHandler getStorageErrorHandler()
    • setStorageErrorHandler

      void setStorageErrorHandler(StorageErrorHandler storageErrorHandler)
    • saveApplicationInstance

      void saveApplicationInstance(PingOneRegion walletRegion, com.pingidentity.did.sdk.client.service.model.ApplicationInstance applicationInstance)
    • getApplicationInstance

      com.pingidentity.did.sdk.client.service.model.ApplicationInstance getApplicationInstance()
    • getApplicationInstance

      com.pingidentity.did.sdk.client.service.model.ApplicationInstance getApplicationInstance(PingOneRegion walletRegion)
    • saveString

      void saveString(String str, String key)
    • getString

      String getString(String key)
    • saveStringSet

      void saveStringSet(Set<String> set, String key)
    • getStringSet

      Set<String> getStringSet(String key)