forked from mosip/id-authentication
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ES-1063] added new API for exchange of verified claims.
Signed-off-by: Mahammed Taheer <[email protected]>
- Loading branch information
1 parent
5dae575
commit c4487d4
Showing
16 changed files
with
607 additions
and
21 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
97 changes: 97 additions & 0 deletions
97
...-core/src/main/java/io/mosip/authentication/core/indauth/dto/KycExchangeRequestDTOV2.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,97 @@ | ||
package io.mosip.authentication.core.indauth.dto; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
import javax.validation.constraints.NotNull; | ||
|
||
import io.mosip.authentication.core.dto.ObjectWithMetadata; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
|
||
/** | ||
* The class KycExchangeRequestDTOV2 to holds the request parameters | ||
* for Kyc Exchange Request Object for OIDC4IDA. | ||
* | ||
* @author Mahammed Taheer | ||
* | ||
*/ | ||
|
||
@Data | ||
@EqualsAndHashCode(callSuper=true) | ||
public class KycExchangeRequestDTOV2 extends BaseRequestDTO implements ObjectWithMetadata { | ||
|
||
/** The Variable to hold value of kyc Token */ | ||
@NotNull | ||
private String kycToken; | ||
|
||
/** The Variable to hold value of list of user selected locales */ | ||
private List<String> locales; | ||
|
||
private Map<String, Object> metadata; | ||
|
||
/* | ||
* Support for OIDC4IDA claims. | ||
* one "verification", and "claims". | ||
* Eg: | ||
* | ||
"verified_claims":{ | ||
"verification":{ | ||
"trust_framework":{ | ||
"value":"abd" or | ||
"values": ["tf1", "tf2"] | ||
}, | ||
"time":{ | ||
"max_age":"1933" | ||
} | ||
}, | ||
"claims":{ // Verified Claims | ||
"given_name":null, | ||
"family_name":null, | ||
"birthdate":null | ||
} | ||
} | ||
* Support for multiple objects contains array of "verification" and "claims". | ||
* | ||
* Eg: | ||
* | ||
"verified_claims":[ | ||
{ | ||
"verification":{ | ||
"trust_framework":{ | ||
"value":"abd" or | ||
"values": ["tf1", "tf2"] | ||
}, | ||
"time":{ | ||
"max_age":"1933" | ||
} | ||
}, | ||
"claims":{ // Verified Claims | ||
"given_name":null, | ||
"family_name":null | ||
} | ||
}, | ||
{ | ||
"verification":{ | ||
"trust_framework":{ | ||
"value":"xyz" or | ||
"values": ["tf3", "tf4"] | ||
}, | ||
"time":{ | ||
"max_age":"1933" | ||
} | ||
}, | ||
"claims":{ // Verified Claims | ||
"birthdate":null | ||
} | ||
} | ||
] | ||
* | ||
*/ | ||
List<Map<String, Object>> verifiedClaims; | ||
|
||
/* | ||
* User consented unverified claims list. | ||
*/ | ||
Map<String, Object> unVerifiedConsentedClaims; | ||
} |
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
Oops, something went wrong.