Interface VciService
public interface VciService
This interface is used to build Verifiable Credentials.
- Author:
- Mahammed Taheer
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCredSubjectId(String credSubjectId, String idVidHash, String tokenId, String oidcClientId) Method used to add the Credential Subject Id in DB.buildVerifiableCredentials(String credSubjectId, String vcFormat, Map<String, List<IdentityInfoDTO>> idInfo, List<String> locales, Set<String> allowedAttributes, VciExchangeRequestDTO vciExchangeRequestDTO, String psuToken) Method to build the verifiable credentials.
-
Method Details
-
addCredSubjectId
void addCredSubjectId(String credSubjectId, String idVidHash, String tokenId, String oidcClientId) throws IdAuthenticationBusinessException Method used to add the Credential Subject Id in DB.- Parameters:
credSubjectId- the Credential Subject id of the identityidVidHash- the Id/VID hash valuetokenId- the token id of the identity- Throws:
IdAuthenticationBusinessException- the id authentication business exception
-
buildVerifiableCredentials
VCResponseDTO<?> buildVerifiableCredentials(String credSubjectId, String vcFormat, Map<String, List<IdentityInfoDTO>> idInfo, List<String> locales, Set<String> allowedAttributes, VciExchangeRequestDTO vciExchangeRequestDTO, String psuToken) throws IdAuthenticationBusinessExceptionMethod to build the verifiable credentials.- Parameters:
credSubjectId- the Credential Subject id of the identityvcFormat- VC formatidInfo- List of Identity Info of the user.locales- locale data to be added in VC.- Returns:
- VCResponseDTO VC Response based on requested format.
- Throws:
IdAuthenticationBusinessException- the id authentication business exception
-