Interface StorageManagerContract
public interface StorageManagerContract
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteClaim
(String claimId) Delete saved Claimcom.pingidentity.did.sdk.client.service.model.ApplicationInstance
Get saved ApplicationInstance for a regioncom.pingidentity.did.sdk.client.service.model.ApplicationInstance
getApplicationInstance
(PingOneRegion walletRegion) Get saved ApplicationInstance for a regioncom.pingidentity.did.sdk.types.Claim
Get Claim for IDcom.pingidentity.did.sdk.types.ClaimReference
getClaimReference
(String claimReferenceId) Get ClaimReference for IDGet storage error handlerGeneric method to retrieve a stored string value for a keygetStringSet
(String key) Generic method to retrieve a stored String collectionvoid
saveApplicationInstance
(PingOneRegion walletRegion, com.pingidentity.did.sdk.client.service.model.ApplicationInstance applicationInstance) Save ApplicationInstance to storage for the region where it is registeredvoid
saveClaim
(com.pingidentity.did.sdk.types.Claim claim) Save Claimvoid
saveClaimReference
(com.pingidentity.did.sdk.types.ClaimReference claimReference) Save ClaimReference for revoked claimsvoid
saveString
(String str, String key) Generic method to save a string key-value pair in storagevoid
saveStringSet
(Set<String> set, String key) Generic method to save a String collection in storagevoid
setStorageErrorHandler
(StorageErrorHandler storageErrorHandler) Pass a StorageErrorHandler to handle any errors when trying to store data
-
Method Details
-
getStorageErrorHandler
StorageErrorHandler getStorageErrorHandler()Get storage error handler- Returns:
- StorageErrorHandler, null if not set
-
setStorageErrorHandler
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 registeredapplicationInstance
- : 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
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
Get ClaimReference for ID- Parameters:
claimReferenceId
- : String claimReferenceID- Returns:
- Saved ClaimReference if found, null otherwise
-
deleteClaim
Delete saved Claim- Parameters:
claimId
- : String claimId
-
saveString
Generic method to save a string key-value pair in storage- Parameters:
str
- : String valuekey
- : String key
-
getString
Generic method to retrieve a stored string value for a key- Parameters:
key
- : String key- Returns:
- String value if found, null otherwise
-
saveStringSet
Generic method to save a String collection in storage- Parameters:
set
- : Set of Stringskey
- : String key
-
getStringSet
Generic method to retrieve a stored String collection- Parameters:
key
- : String key- Returns:
- Set of Strings if found, null otherwise
-