forked from mosip/esignet
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ES-1033] added Verified Claim Detail
Signed-off-by: Venkata Saidurga Polamraju <saidurgacsea@gmail.com>
- Loading branch information
1 parent
f026a2b
commit a9919e0
Showing
31 changed files
with
150 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
esignet-core/src/main/java/io/mosip/esignet/core/dto/UserConsent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../mosip/esignet/api/dto/ClaimMetadata.java → .../esignet/api/dto/Claim/ClaimMetadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.mosip.esignet.api.dto; | ||
package io.mosip.esignet.api.dto.Claim; | ||
|
||
import lombok.Data; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/DocumentDetails.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/Evidence.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/FilterCriteria.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
10 changes: 10 additions & 0 deletions
10
esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/FilterTime.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package io.mosip.esignet.api.dto.Claim; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class FilterTime { | ||
|
||
private int maxAge; | ||
|
||
} |
9 changes: 9 additions & 0 deletions
9
esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/Issuer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package io.mosip.esignet.api.dto.Claim; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class Issuer { | ||
private String name; | ||
private String country; | ||
} |
18 changes: 18 additions & 0 deletions
18
esignet-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/Verification.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> evidence; | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
...net-integration-api/src/main/java/io/mosip/esignet/api/dto/Claim/VerifiedClaimDetail.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
esignet-integration-api/src/main/java/io/mosip/esignet/api/util/EvidenceType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters