Interface VciService
-
public interface VciServiceThis interface is used to build Verifiable Credentials.- Author:
- Mahammed Taheer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddCredSubjectId(String credSubjectId, String idVidHash, String tokenId, String oidcClientId)Method used to add the Credential Subject Id in DB.VCResponseDTO<?>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 Detail
-
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 IdAuthenticationBusinessException
Method 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
-
-