From 4e857e9758f85b1d9c82559b2cef5ee298ce480a Mon Sep 17 00:00:00 2001 From: Vishwa Date: Mon, 8 Jan 2024 13:10:31 +0530 Subject: [PATCH] [ES-503] Removed MockKeyBindingWrapperService since it creates a duplicate bean in eSignet Signed-off-by: Vishwa --- .../service/MockKeyBindingWrapperService.java | 42 ------------------- 1 file changed, 42 deletions(-) delete mode 100644 sunbird-rc-esignet-integration-impl/src/main/java/io/mosip/esignet/sunbirdrc/integration/service/MockKeyBindingWrapperService.java diff --git a/sunbird-rc-esignet-integration-impl/src/main/java/io/mosip/esignet/sunbirdrc/integration/service/MockKeyBindingWrapperService.java b/sunbird-rc-esignet-integration-impl/src/main/java/io/mosip/esignet/sunbirdrc/integration/service/MockKeyBindingWrapperService.java deleted file mode 100644 index f7b5df1..0000000 --- a/sunbird-rc-esignet-integration-impl/src/main/java/io/mosip/esignet/sunbirdrc/integration/service/MockKeyBindingWrapperService.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. - */ -package io.mosip.esignet.sunbirdrc.integration.service; - -import io.mosip.esignet.api.dto.AuthChallenge; -import io.mosip.esignet.api.dto.KeyBindingResult; -import io.mosip.esignet.api.dto.SendOtpResult; -import io.mosip.esignet.api.exception.KeyBindingException; -import io.mosip.esignet.api.exception.SendOtpException; -import io.mosip.esignet.api.spi.KeyBinder; - -import io.mosip.esignet.api.util.ErrorConstants; -import lombok.extern.slf4j.Slf4j; -import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; -import org.springframework.stereotype.Component; -import java.util.List; -import java.util.Map; - -@ConditionalOnProperty(value = "mosip.esignet.integration.key-binder", havingValue = "MockKeyBindingWrapperService") -@Component -@Slf4j -public class MockKeyBindingWrapperService implements KeyBinder { - - - @Override - public SendOtpResult sendBindingOtp(String individualId, List otpChannels, Map requestHeaders) throws SendOtpException{ - throw new SendOtpException(ErrorConstants.NOT_IMPLEMENTED); - } - - @Override - public KeyBindingResult doKeyBinding(String individualId, List challengeList, Map publicKeyJWK, String bindAuthFactorType, Map requestHeaders) throws KeyBindingException { - throw new KeyBindingException(ErrorConstants.NOT_IMPLEMENTED); - } - - @Override - public List getSupportedChallengeFormats(String authFactorType) { - return null; - } -}