Common
Affinidi TDK common libraries that provides utility functions.
Install Dependency
Package: pkg:maven/com.affinidi.tdk/common
<dependency>
<groupId>com.affinidi.tdk</groupId>
<artifactId>common</artifactId>
<version><version_number></version>
</dependency>Check the latest version on the Maven Central repository or view the source on GitHub.
Classes and Methods
VaultUtils
Provides utility functions for Affinidi Vault requests.
buildShareLink
Generates the Affinidi Iota Framework share link to initiate a request to the Affinidi Vault.
Parameters
request
String
RequiredSigned request token generated from the
prepareRequest method of the Iota Browser library.client_id
String
RequiredClient ID from the signed request token.
Example
import com.affinidi.tdk.common.VaultUtil;
String shareLink = VaultUtil.buildShareLink(request, client_id);buildClaimLink
Generates the Credential Issuance claim link to claim the credential from the Affinidi Vault.
Parameters
credentialOfferUri
String
RequiredCredential Offer URI returned from the
startIssuance method of the Credential Issuance client.Example
import com.affinidi.tdk.common.VaultUtil;
String claimLink = VaultUtil.buildClaimLink(credentialOfferUri);Was this page helpful?
Glad to hear it! Please tell us how we can improve more.
Sorry to hear that. Please tell us how we can improve.
Thank you for sharing your feedback so we can improve your experience.