Retrieve credential claims
When working with issued verifiable credentials (VCs), you often need to access the data inside them - for example, to display credential details in an app, validate information for business rules, or feed data into automated workflows.
The CredentialClaimValues method lets you retrieve claim values in a structured, format-independent object. It parses supported credential formats and makes it easier to process credentials from different issuers and ecosystems without dealing with format-specific logic.
Retrieve claim values
Call the CredentialClaimValues method to read claims from a credential. It returns a standardized object containing all parsed claim values.
- Java
var issuedCredentialClaims = client.credentials().getCredentialClaimValues(issuedCredential.getId());
If the credential format is unsupported or the platform cannot parse claims, this method returns an error.
You can still access and handle the raw credential blob manually with CredentialDownload operation.
Further reading
- Learn how to verify credentials.
- See how to share credentials and presentations.