Interface IdentityKeyBindingService
public interface IdentityKeyBindingService
This interface is used to generate certificate for
Identity Key Binding
- Author:
- Mahammed Taheer
-
Method Summary
Modifier and TypeMethodDescriptioncreateAndSaveKeyBindingCertificate(IdentityKeyBindingRequestDTO identityKeyBindingRequestDTO, Map<String, List<IdentityInfoDTO>> identityInfo, String token, String partnerId) Method used to create certificate for the input public key for key bindingbooleanisPublicKeyBinded(String idVid, Map<String, Object> publicKeyJWK) Method used to check whether input public key is already binded to existing VID for the an Identity
-
Method Details
-
isPublicKeyBinded
boolean isPublicKeyBinded(String idVid, Map<String, Object> publicKeyJWK) throws IdAuthenticationBusinessExceptionMethod used to check whether input public key is already binded to existing VID for the an Identity- Parameters:
idVid- the id or vidpublicKeyJWK- the public key to be binded- Returns:
- boolean true if public key exist else false.
- Throws:
IdAuthenticationBusinessException- the id authentication business exception
-
createAndSaveKeyBindingCertificate
String createAndSaveKeyBindingCertificate(IdentityKeyBindingRequestDTO identityKeyBindingRequestDTO, Map<String, List<IdentityInfoDTO>> identityInfo, String token, String partnerId) throws IdAuthenticationBusinessExceptionMethod used to create certificate for the input public key for key binding- Parameters:
identityKeyBindingRequestDTO- the key binding request DTOidentityInfo- the authenticated identity infotoken- the identity token- Returns:
- String PEM Formatted created certificate.
- Throws:
IdAuthenticationBusinessException- the id authentication business exception
-