Interface StorageManagerContract


public interface StorageManagerContract
  • Method Details

    • getStorageErrorHandler

      StorageErrorHandler getStorageErrorHandler()
      Get storage error handler
      Returns:
      StorageErrorHandler, null if not set
    • setStorageErrorHandler

      void setStorageErrorHandler(StorageErrorHandler storageErrorHandler)
      Pass a StorageErrorHandler to handle any errors when trying to store data
      Parameters:
      storageErrorHandler - : implementation of StorageErrorHandler
      See Also:
    • saveApplicationInstance

      void saveApplicationInstance(PingOneRegion walletRegion, com.pingidentity.did.sdk.client.service.model.ApplicationInstance applicationInstance)
      Save ApplicationInstance to storage for the region where it is registered
      Parameters:
      walletRegion - PingOneRegion where ApplicationInstance is registered
      applicationInstance - : ApplicationInstance
    • getApplicationInstance

      com.pingidentity.did.sdk.client.service.model.ApplicationInstance getApplicationInstance()
      Get saved ApplicationInstance for a region
      Returns:
      Saved ApplicationInstance if found, null otherwise
    • getApplicationInstance

      com.pingidentity.did.sdk.client.service.model.ApplicationInstance getApplicationInstance(PingOneRegion walletRegion)
      Get saved ApplicationInstance for a region
      Parameters:
      walletRegion - : PingOneRegion where ApplicationInstance is registered
      Returns:
      Saved ApplicationInstance if found, null otherwise
    • saveClaim

      void saveClaim(com.pingidentity.did.sdk.types.Claim claim)
      Save Claim
      Parameters:
      claim - : Claim to save
    • getClaim

      com.pingidentity.did.sdk.types.Claim getClaim(String claimId)
      Get Claim for ID
      Parameters:
      claimId - : String of claimId
      Returns:
      Saved Claim if found, null otherwise
    • saveClaimReference

      void saveClaimReference(com.pingidentity.did.sdk.types.ClaimReference claimReference)
      Save ClaimReference for revoked claims
      Parameters:
      claimReference - : ClaimReference
    • getClaimReference

      com.pingidentity.did.sdk.types.ClaimReference getClaimReference(String claimReferenceId)
      Get ClaimReference for ID
      Parameters:
      claimReferenceId - : String claimReferenceID
      Returns:
      Saved ClaimReference if found, null otherwise
    • deleteClaim

      void deleteClaim(String claimId)
      Delete saved Claim
      Parameters:
      claimId - : String claimId
    • saveString

      void saveString(String str, String key)
      Generic method to save a string key-value pair in storage
      Parameters:
      str - : String value
      key - : String key
    • getString

      String getString(String key)
      Generic method to retrieve a stored string value for a key
      Parameters:
      key - : String key
      Returns:
      String value if found, null otherwise
    • saveStringSet

      void saveStringSet(Set<String> set, String key)
      Generic method to save a String collection in storage
      Parameters:
      set - : Set of Strings
      key - : String key
    • getStringSet

      Set<String> getStringSet(String key)
      Generic method to retrieve a stored String collection
      Parameters:
      key - : String key
      Returns:
      Set of Strings if found, null otherwise