diff --git a/consent-service-impl/src/main/java/io/mosip/esignet/mapper/converter/ClaimsToStringConverter.java b/consent-service-impl/src/main/java/io/mosip/esignet/mapper/converter/ClaimsToStringConverter.java index 961768890..488270dd9 100644 --- a/consent-service-impl/src/main/java/io/mosip/esignet/mapper/converter/ClaimsToStringConverter.java +++ b/consent-service-impl/src/main/java/io/mosip/esignet/mapper/converter/ClaimsToStringConverter.java @@ -7,7 +7,7 @@ import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; -import io.mosip.esignet.api.dto.Claims; +import io.mosip.esignet.api.dto.Claim.Claims; import io.mosip.esignet.core.exception.EsignetException; import lombok.extern.slf4j.Slf4j; import org.modelmapper.Converter; diff --git a/consent-service-impl/src/main/java/io/mosip/esignet/mapper/converter/StringToClaimsConverter.java b/consent-service-impl/src/main/java/io/mosip/esignet/mapper/converter/StringToClaimsConverter.java index 921ac5d18..af2c74924 100644 --- a/consent-service-impl/src/main/java/io/mosip/esignet/mapper/converter/StringToClaimsConverter.java +++ b/consent-service-impl/src/main/java/io/mosip/esignet/mapper/converter/StringToClaimsConverter.java @@ -7,7 +7,7 @@ import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; -import io.mosip.esignet.api.dto.Claims; +import io.mosip.esignet.api.dto.Claim.Claims; import io.mosip.esignet.core.exception.EsignetException; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; diff --git a/consent-service-impl/src/test/java/io/mosip/esignet/ConsentServiceImplTest.java b/consent-service-impl/src/test/java/io/mosip/esignet/ConsentServiceImplTest.java index c030c5cd3..9fcc47999 100644 --- a/consent-service-impl/src/test/java/io/mosip/esignet/ConsentServiceImplTest.java +++ b/consent-service-impl/src/test/java/io/mosip/esignet/ConsentServiceImplTest.java @@ -5,8 +5,8 @@ */ package io.mosip.esignet; -import io.mosip.esignet.api.dto.ClaimDetail; -import io.mosip.esignet.api.dto.Claims; +import io.mosip.esignet.api.dto.Claim.ClaimDetail; +import io.mosip.esignet.api.dto.Claim.Claims; import io.mosip.esignet.api.spi.AuditPlugin; import io.mosip.esignet.core.dto.UserConsent; import io.mosip.esignet.core.dto.UserConsentRequest; diff --git a/esignet-core/src/main/java/io/mosip/esignet/core/dto/ConsentDetail.java b/esignet-core/src/main/java/io/mosip/esignet/core/dto/ConsentDetail.java index 4752b0b51..446d0886f 100644 --- a/esignet-core/src/main/java/io/mosip/esignet/core/dto/ConsentDetail.java +++ b/esignet-core/src/main/java/io/mosip/esignet/core/dto/ConsentDetail.java @@ -5,7 +5,7 @@ */ package io.mosip.esignet.core.dto; -import io.mosip.esignet.api.dto.Claims; +import io.mosip.esignet.api.dto.Claim.Claims; import lombok.Data; import java.time.LocalDateTime; diff --git a/esignet-core/src/main/java/io/mosip/esignet/core/dto/OAuthDetailRequest.java b/esignet-core/src/main/java/io/mosip/esignet/core/dto/OAuthDetailRequest.java index 44504052a..89dfa9ad0 100644 --- a/esignet-core/src/main/java/io/mosip/esignet/core/dto/OAuthDetailRequest.java +++ b/esignet-core/src/main/java/io/mosip/esignet/core/dto/OAuthDetailRequest.java @@ -5,7 +5,7 @@ */ package io.mosip.esignet.core.dto; -import io.mosip.esignet.api.dto.Claims; +import io.mosip.esignet.api.dto.Claim.Claims; import io.mosip.esignet.core.validator.OIDCDisplay; import io.mosip.esignet.core.validator.OIDCPrompt; import io.mosip.esignet.core.validator.OIDCResponseType; diff --git a/esignet-core/src/main/java/io/mosip/esignet/core/dto/OIDCTransaction.java b/esignet-core/src/main/java/io/mosip/esignet/core/dto/OIDCTransaction.java index 5a94b32d5..1c733aef9 100644 --- a/esignet-core/src/main/java/io/mosip/esignet/core/dto/OIDCTransaction.java +++ b/esignet-core/src/main/java/io/mosip/esignet/core/dto/OIDCTransaction.java @@ -5,7 +5,7 @@ */ package io.mosip.esignet.core.dto; -import io.mosip.esignet.api.dto.Claims; +import io.mosip.esignet.api.dto.Claim.Claims; import io.mosip.esignet.api.util.ConsentAction; import io.mosip.esignet.core.util.LinkCodeQueue; import lombok.Data; diff --git a/esignet-core/src/main/java/io/mosip/esignet/core/dto/UserConsent.java b/esignet-core/src/main/java/io/mosip/esignet/core/dto/UserConsent.java index 558051b84..20b32570c 100644 --- a/esignet-core/src/main/java/io/mosip/esignet/core/dto/UserConsent.java +++ b/esignet-core/src/main/java/io/mosip/esignet/core/dto/UserConsent.java @@ -1,6 +1,6 @@ package io.mosip.esignet.core.dto; -import io.mosip.esignet.api.dto.Claims; +import io.mosip.esignet.api.dto.Claim.Claims; import lombok.Data; import java.time.LocalDateTime; diff --git a/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/AuditDTO.java b/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/AuditDTO.java index b4f046af9..973ec0118 100644 --- a/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/AuditDTO.java +++ b/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/AuditDTO.java @@ -5,6 +5,7 @@ */ package io.mosip.esignet.api.dto; +import io.mosip.esignet.api.dto.Claim.Claims; import lombok.Data; import lombok.NoArgsConstructor; diff --git a/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/ClaimDetail.java b/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/ClaimDetail.java similarity index 93% rename from esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/ClaimDetail.java rename to esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/ClaimDetail.java index 24c1ed7e5..08e631fe4 100644 --- a/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/ClaimDetail.java +++ b/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/ClaimDetail.java @@ -3,7 +3,7 @@ * 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.api.dto; +package io.mosip.esignet.api.dto.Claim; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import lombok.AllArgsConstructor; diff --git a/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/ClaimMetadata.java b/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/ClaimMetadata.java similarity index 84% rename from esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/ClaimMetadata.java rename to esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/ClaimMetadata.java index 6c77a102e..4619fd42a 100644 --- a/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/ClaimMetadata.java +++ b/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/ClaimMetadata.java @@ -1,4 +1,4 @@ -package io.mosip.esignet.api.dto; +package io.mosip.esignet.api.dto.Claim; import lombok.Data; diff --git a/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claims.java b/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/Claims.java similarity index 91% rename from esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claims.java rename to esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/Claims.java index 9c12bf42f..bc093bc9e 100644 --- a/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claims.java +++ b/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/Claims.java @@ -3,7 +3,7 @@ * 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.api.dto; +package io.mosip.esignet.api.dto.Claim; import lombok.Data; diff --git a/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/DocumentDetails.java b/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/DocumentDetails.java new file mode 100644 index 000000000..b94966b6e --- /dev/null +++ b/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/DocumentDetails.java @@ -0,0 +1,13 @@ +package io.mosip.esignet.api.dto.Claim; + +import lombok.Data; + +@Data +public class DocumentDetails { + private FilterCriteria type; + private String documentNumber; + private String dateOfIssuance; + private String dateOfExpiry; + private Issuer issuer; + +} \ No newline at end of file diff --git a/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/Evidence.java b/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/Evidence.java new file mode 100644 index 000000000..b8acc7b5b --- /dev/null +++ b/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/Evidence.java @@ -0,0 +1,18 @@ +package io.mosip.esignet.api.dto.Claim; + +import io.mosip.esignet.api.util.ErrorConstants; +import io.mosip.esignet.api.util.EvidenceType; +import lombok.Data; + +import javax.validation.constraints.NotBlank; + +@Data +public class Evidence { + + @NotBlank(message = ErrorConstants.INVALID_EVIDENCE_TYPE) + private EvidenceType type; + private FilterCriteria method; + private DocumentDetails documentDetails; + private FilterTime time; + +} diff --git a/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/FilterCriteria.java b/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/FilterCriteria.java new file mode 100644 index 000000000..d49e654ca --- /dev/null +++ b/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/FilterCriteria.java @@ -0,0 +1,13 @@ +package io.mosip.esignet.api.dto.Claim; + +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +@Data +@AllArgsConstructor +@NoArgsConstructor +public class FilterCriteria { + private String value; + private String[] values; +} diff --git a/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/FilterTime.java b/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/FilterTime.java new file mode 100644 index 000000000..ce64fde3f --- /dev/null +++ b/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/FilterTime.java @@ -0,0 +1,10 @@ +package io.mosip.esignet.api.dto.Claim; + +import lombok.Data; + +@Data +public class FilterTime { + + private int maxAge; + +} diff --git a/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/Issuer.java b/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/Issuer.java new file mode 100644 index 000000000..3aed0e825 --- /dev/null +++ b/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/Issuer.java @@ -0,0 +1,9 @@ +package io.mosip.esignet.api.dto.Claim; + +import lombok.Data; + +@Data +public class Issuer { + private String name; + private String country; +} diff --git a/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/Verification.java b/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/Verification.java new file mode 100644 index 000000000..e3a06f86e --- /dev/null +++ b/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/Verification.java @@ -0,0 +1,18 @@ +package io.mosip.esignet.api.dto.Claim; + +import io.mosip.esignet.api.util.ErrorConstants; +import lombok.Data; + +import javax.validation.constraints.NotBlank; +import java.util.List; + +@Data +public class Verification { + + @NotBlank(message=ErrorConstants.INVALID_TRUST_FRAMEWORK) + private FilterCriteria trust_framework; + private FilterTime time; + private FilterCriteria assurance_level; + private List evidence; + +} diff --git a/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/VerifiedClaimDetail.java b/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/VerifiedClaimDetail.java new file mode 100644 index 000000000..52f064916 --- /dev/null +++ b/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/VerifiedClaimDetail.java @@ -0,0 +1,16 @@ +package io.mosip.esignet.api.dto.Claim; + +import io.mosip.esignet.api.util.ErrorConstants; +import lombok.Data; + +import javax.validation.constraints.NotBlank; + +@Data +public class VerifiedClaimDetail { + + @NotBlank + private Verification verification; + + @NotBlank(message = ErrorConstants.INVALID_CLAIMS) + private Claims claims; +} diff --git a/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/KycAuthResult.java b/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/KycAuthResult.java index 20158ef15..d0a0a37aa 100644 --- a/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/KycAuthResult.java +++ b/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/KycAuthResult.java @@ -5,6 +5,7 @@ */ package io.mosip.esignet.api.dto; +import io.mosip.esignet.api.dto.Claim.ClaimMetadata; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; diff --git a/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/VerifiedKycExchangeDto.java b/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/VerifiedKycExchangeDto.java index 34a19e1fc..26e8e9710 100644 --- a/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/VerifiedKycExchangeDto.java +++ b/esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/VerifiedKycExchangeDto.java @@ -5,9 +5,9 @@ */ package io.mosip.esignet.api.dto; +import io.mosip.esignet.api.dto.Claim.ClaimMetadata; import lombok.Data; -import java.util.List; import java.util.Map; @Data diff --git a/esignet-integration-api/src/main/java/io/mosip/esignet/api/util/ErrorConstants.java b/esignet-integration-api/src/main/java/io/mosip/esignet/api/util/ErrorConstants.java index cec0a0ce6..55062c212 100644 --- a/esignet-integration-api/src/main/java/io/mosip/esignet/api/util/ErrorConstants.java +++ b/esignet-integration-api/src/main/java/io/mosip/esignet/api/util/ErrorConstants.java @@ -20,4 +20,7 @@ public class ErrorConstants { public static final String VCI_EXCHANGE_FAILED = "vci_exchange_failed"; public static final String NOT_IMPLEMENTED = "not_implemented"; public static final String INVALID_CHALLENGE_LENGTH = "invalid_challenge_length"; + public static final String INVALID_CLAIMS = "invalid_claims"; + public static final String INVALID_TRUST_FRAMEWORK = "invalid_trust_framework"; + public static final String INVALID_EVIDENCE_TYPE = "invalid_evidence_type"; } diff --git a/esignet-integration-api/src/main/java/io/mosip/esignet/api/util/EvidenceType.java b/esignet-integration-api/src/main/java/io/mosip/esignet/api/util/EvidenceType.java new file mode 100644 index 000000000..b858b30bd --- /dev/null +++ b/esignet-integration-api/src/main/java/io/mosip/esignet/api/util/EvidenceType.java @@ -0,0 +1,18 @@ +package io.mosip.esignet.api.util; + +public enum EvidenceType { + DOCUMENT("document"), + ELECTRONIC_RECORD("electronic_record"), + VOUCH("vouch"), + ELECTRONIC_SIGNATURE("electronic_signature"); + String value; + + EvidenceType(String value) { + this.value = value; + } + + public String getValue() { + return this.value; + } + +} diff --git a/esignet-service/src/test/java/io/mosip/esignet/flows/AuthCodeFlowTest.java b/esignet-service/src/test/java/io/mosip/esignet/flows/AuthCodeFlowTest.java index f275bd77b..d8d1cdecb 100644 --- a/esignet-service/src/test/java/io/mosip/esignet/flows/AuthCodeFlowTest.java +++ b/esignet-service/src/test/java/io/mosip/esignet/flows/AuthCodeFlowTest.java @@ -18,9 +18,8 @@ import com.nimbusds.jwt.SignedJWT; import io.mosip.esignet.TestUtil; import io.mosip.esignet.api.dto.AuthChallenge; -import io.mosip.esignet.api.dto.ClaimDetail; -import io.mosip.esignet.api.dto.Claims; -import io.mosip.esignet.api.dto.KycAuthDto; +import io.mosip.esignet.api.dto.Claim.ClaimDetail; +import io.mosip.esignet.api.dto.Claim.Claims; import io.mosip.esignet.api.spi.AuditPlugin; import io.mosip.esignet.api.spi.Authenticator; import io.mosip.esignet.core.dto.*; diff --git a/esignet-service/src/test/java/io/mosip/esignet/flows/AuthorizationAPIFlowTest.java b/esignet-service/src/test/java/io/mosip/esignet/flows/AuthorizationAPIFlowTest.java index 56f0f0c17..cbf863485 100644 --- a/esignet-service/src/test/java/io/mosip/esignet/flows/AuthorizationAPIFlowTest.java +++ b/esignet-service/src/test/java/io/mosip/esignet/flows/AuthorizationAPIFlowTest.java @@ -18,9 +18,8 @@ import com.nimbusds.jwt.JWTClaimsSet; import com.nimbusds.jwt.SignedJWT; import io.mosip.esignet.api.dto.AuthChallenge; -import io.mosip.esignet.api.dto.ClaimDetail; -import io.mosip.esignet.api.dto.Claims; -import io.mosip.esignet.api.dto.KycAuthDto; +import io.mosip.esignet.api.dto.Claim.ClaimDetail; +import io.mosip.esignet.api.dto.Claim.Claims; import io.mosip.esignet.api.spi.AuditPlugin; import io.mosip.esignet.api.spi.Authenticator; import io.mosip.esignet.core.dto.*; diff --git a/oidc-service-impl/src/main/java/io/mosip/esignet/services/AuthorizationHelperService.java b/oidc-service-impl/src/main/java/io/mosip/esignet/services/AuthorizationHelperService.java index 18270d1cb..98daec958 100644 --- a/oidc-service-impl/src/main/java/io/mosip/esignet/services/AuthorizationHelperService.java +++ b/oidc-service-impl/src/main/java/io/mosip/esignet/services/AuthorizationHelperService.java @@ -6,6 +6,8 @@ package io.mosip.esignet.services; import io.mosip.esignet.api.dto.*; +import io.mosip.esignet.api.dto.Claim.ClaimDetail; +import io.mosip.esignet.api.dto.Claim.Claims; import io.mosip.esignet.api.exception.KycAuthException; import io.mosip.esignet.api.exception.SendOtpException; import io.mosip.esignet.api.spi.AuditPlugin; diff --git a/oidc-service-impl/src/main/java/io/mosip/esignet/services/AuthorizationServiceImpl.java b/oidc-service-impl/src/main/java/io/mosip/esignet/services/AuthorizationServiceImpl.java index 2b40f84d9..5f9646370 100644 --- a/oidc-service-impl/src/main/java/io/mosip/esignet/services/AuthorizationServiceImpl.java +++ b/oidc-service-impl/src/main/java/io/mosip/esignet/services/AuthorizationServiceImpl.java @@ -6,8 +6,8 @@ package io.mosip.esignet.services; import com.fasterxml.jackson.databind.ObjectMapper; -import io.mosip.esignet.api.dto.ClaimDetail; -import io.mosip.esignet.api.dto.Claims; +import io.mosip.esignet.api.dto.Claim.ClaimDetail; +import io.mosip.esignet.api.dto.Claim.Claims; import io.mosip.esignet.api.dto.KycAuthResult; import io.mosip.esignet.api.dto.SendOtpResult; import io.mosip.esignet.api.spi.AuditPlugin; diff --git a/oidc-service-impl/src/main/java/io/mosip/esignet/services/ConsentHelperService.java b/oidc-service-impl/src/main/java/io/mosip/esignet/services/ConsentHelperService.java index 224adc26d..be5f0e6c9 100644 --- a/oidc-service-impl/src/main/java/io/mosip/esignet/services/ConsentHelperService.java +++ b/oidc-service-impl/src/main/java/io/mosip/esignet/services/ConsentHelperService.java @@ -9,8 +9,8 @@ import com.nimbusds.jose.*; import com.nimbusds.jose.crypto.RSASSAVerifier; import com.nimbusds.jwt.SignedJWT; -import io.mosip.esignet.api.dto.ClaimDetail; -import io.mosip.esignet.api.dto.Claims; +import io.mosip.esignet.api.dto.Claim.ClaimDetail; +import io.mosip.esignet.api.dto.Claim.Claims; import io.mosip.esignet.api.spi.AuditPlugin; import io.mosip.esignet.api.util.Action; import io.mosip.esignet.api.util.ActionStatus; diff --git a/oidc-service-impl/src/test/java/io/mosip/esignet/services/AuthorizationHelperServiceTest.java b/oidc-service-impl/src/test/java/io/mosip/esignet/services/AuthorizationHelperServiceTest.java index 1af07c79b..101983c7b 100644 --- a/oidc-service-impl/src/test/java/io/mosip/esignet/services/AuthorizationHelperServiceTest.java +++ b/oidc-service-impl/src/test/java/io/mosip/esignet/services/AuthorizationHelperServiceTest.java @@ -7,6 +7,8 @@ import io.mosip.esignet.api.dto.*; +import io.mosip.esignet.api.dto.Claim.ClaimDetail; +import io.mosip.esignet.api.dto.Claim.Claims; import io.mosip.esignet.api.exception.KycAuthException; import io.mosip.esignet.api.exception.SendOtpException; import io.mosip.esignet.api.spi.AuditPlugin; diff --git a/oidc-service-impl/src/test/java/io/mosip/esignet/services/AuthorizationServiceTest.java b/oidc-service-impl/src/test/java/io/mosip/esignet/services/AuthorizationServiceTest.java index f350a6540..3ba95fa18 100644 --- a/oidc-service-impl/src/test/java/io/mosip/esignet/services/AuthorizationServiceTest.java +++ b/oidc-service-impl/src/test/java/io/mosip/esignet/services/AuthorizationServiceTest.java @@ -7,8 +7,8 @@ import com.fasterxml.jackson.databind.ObjectMapper; import io.mosip.esignet.api.dto.AuthChallenge; -import io.mosip.esignet.api.dto.ClaimDetail; -import io.mosip.esignet.api.dto.Claims; +import io.mosip.esignet.api.dto.Claim.ClaimDetail; +import io.mosip.esignet.api.dto.Claim.Claims; import io.mosip.esignet.api.dto.KycAuthResult; import io.mosip.esignet.api.exception.KycAuthException; import io.mosip.esignet.api.spi.AuditPlugin; diff --git a/oidc-service-impl/src/test/java/io/mosip/esignet/services/ConsentHelperServiceTest.java b/oidc-service-impl/src/test/java/io/mosip/esignet/services/ConsentHelperServiceTest.java index 4f0784c9c..2a4b65af4 100644 --- a/oidc-service-impl/src/test/java/io/mosip/esignet/services/ConsentHelperServiceTest.java +++ b/oidc-service-impl/src/test/java/io/mosip/esignet/services/ConsentHelperServiceTest.java @@ -10,8 +10,8 @@ import com.nimbusds.jose.jwk.JWK; import com.nimbusds.jose.jwk.JWKSet; import com.nimbusds.jose.util.Base64URL; -import io.mosip.esignet.api.dto.ClaimDetail; -import io.mosip.esignet.api.dto.Claims; +import io.mosip.esignet.api.dto.Claim.ClaimDetail; +import io.mosip.esignet.api.dto.Claim.Claims; import io.mosip.esignet.api.spi.AuditPlugin; import io.mosip.esignet.api.util.ConsentAction; import io.mosip.esignet.core.constants.ErrorConstants; diff --git a/oidc-service-impl/src/test/java/io/mosip/esignet/services/LinkedAuthorizationServiceTest.java b/oidc-service-impl/src/test/java/io/mosip/esignet/services/LinkedAuthorizationServiceTest.java index 597f908ae..6456a42ba 100644 --- a/oidc-service-impl/src/test/java/io/mosip/esignet/services/LinkedAuthorizationServiceTest.java +++ b/oidc-service-impl/src/test/java/io/mosip/esignet/services/LinkedAuthorizationServiceTest.java @@ -7,6 +7,8 @@ import io.mosip.esignet.api.dto.*; +import io.mosip.esignet.api.dto.Claim.ClaimDetail; +import io.mosip.esignet.api.dto.Claim.Claims; import io.mosip.esignet.api.exception.KycAuthException; import io.mosip.esignet.api.exception.SendOtpException; import io.mosip.esignet.api.spi.AuditPlugin;