Class PartnerServiceImpl
- java.lang.Object
-
- io.mosip.authentication.common.service.impl.patrner.PartnerServiceImpl
-
- All Implemented Interfaces:
PartnerService
@Service public class PartnerServiceImpl extends Object implements PartnerService
The Implementation of PartnerService to fetch the Partner, Policy, MISP and License information. Any caching of these data to be handled here.- Author:
- Loganathan Sekar, Nagarjuna K
-
-
Constructor Summary
Constructors Constructor Description PartnerServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<PartnerDTO>getPartner(String partnerId, Map<String,Object> metadata)Optional<PartnerPolicyResponseDTO>getPolicyForPartner(String partnerId, String partnerApiKey, Map<String,Object> metadata)PartnerPolicyResponseDTOvalidateAndGetPolicy(String partnerId, String partnerApiKey, String mispLicenseKey, boolean certificateNeeded, String headerCertificateThumbprint, boolean certValidationNeeded)
-
-
-
Method Detail
-
getPartner
public Optional<PartnerDTO> getPartner(String partnerId, Map<String,Object> metadata) throws IdAuthenticationBusinessException
- Specified by:
getPartnerin interfacePartnerService- Throws:
IdAuthenticationBusinessException
-
validateAndGetPolicy
public PartnerPolicyResponseDTO validateAndGetPolicy(String partnerId, String partnerApiKey, String mispLicenseKey, boolean certificateNeeded, String headerCertificateThumbprint, boolean certValidationNeeded) throws IdAuthenticationBusinessException
- Specified by:
validateAndGetPolicyin interfacePartnerService- Throws:
IdAuthenticationBusinessException
-
getPolicyForPartner
public Optional<PartnerPolicyResponseDTO> getPolicyForPartner(String partnerId, String partnerApiKey, Map<String,Object> metadata) throws IdAuthenticationBusinessException
- Specified by:
getPolicyForPartnerin interfacePartnerService- Throws:
IdAuthenticationBusinessException
-
-