-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RCF-248: Added jwtVerify implementation (#215)
* RCF-226: Changed consent screen fetch logic Signed-off-by: Himaja Dhanyamraju <Dhanyamraju.Himaja2@mindtree.com> * RCF-226: Changed decryption logic Signed-off-by: Himaja Dhanyamraju <Dhanyamraju.Himaja2@mindtree.com> * Removed unused code Signed-off-by: Himaja Dhanyamraju <Dhanyamraju.Himaja2@mindtree.com> * Removed logs Signed-off-by: Himaja Dhanyamraju <Dhanyamraju.Himaja2@mindtree.com> * RCF-248: Modified as per review comments Signed-off-by: Himaja Dhanyamraju <Dhanyamraju.Himaja2@mindtree.com> --------- Signed-off-by: Himaja Dhanyamraju <Dhanyamraju.Himaja2@mindtree.com>
- Loading branch information
1 parent
ae3880f
commit cb69ac3
Showing
17 changed files
with
397 additions
and
8 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
25 changes: 25 additions & 0 deletions
25
...anager/src/main/java/io/mosip/registration/keymanager/dto/CertificateTrustRequestDto.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,25 @@ | ||
package io.mosip.registration.keymanager.dto; | ||
|
||
import javax.validation.constraints.NotBlank; | ||
|
||
import lombok.Data; | ||
|
||
/** | ||
* Partner Certificates Verify Trust Request DTO. | ||
*/ | ||
@Data | ||
public class CertificateTrustRequestDto { | ||
|
||
/** | ||
* Certificate Data of Partner. | ||
*/ | ||
@NotBlank(message = "Invalid Request") | ||
private String certificateData; | ||
|
||
/** | ||
* Partner Type. | ||
*/ | ||
@NotBlank(message = "Invalid Request") | ||
private String partnerDomain; | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
...nager/src/main/java/io/mosip/registration/keymanager/dto/CertificateTrustResponseDto.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.registration.keymanager.dto; | ||
|
||
import lombok.Data; | ||
|
||
/** | ||
* DTO class for certificate verification response. | ||
*/ | ||
@Data | ||
public class CertificateTrustResponseDto { | ||
|
||
/** | ||
* Status of certificate verification. | ||
*/ | ||
private Boolean status; | ||
|
||
} |
39 changes: 39 additions & 0 deletions
39
...ager/src/main/java/io/mosip/registration/keymanager/dto/JWTSignatureVerifyRequestDto.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,39 @@ | ||
package io.mosip.registration.keymanager.dto; | ||
|
||
import javax.validation.constraints.NotBlank; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class JWTSignatureVerifyRequestDto { | ||
|
||
@NotBlank | ||
private String jwtSignatureData; | ||
|
||
private String actualData; | ||
|
||
/** | ||
* Application id of decrypting module | ||
*/ | ||
private String applicationId; | ||
|
||
/** | ||
* Refrence Id | ||
*/ | ||
private String referenceId; | ||
|
||
/** | ||
* Certificate to be use in JWT Signature verification. | ||
*/ | ||
private String certificateData; | ||
|
||
/** | ||
* Flag to validate against trust store. | ||
*/ | ||
private Boolean validateTrust; | ||
|
||
/** | ||
* Domain to be considered to validate trust store | ||
*/ | ||
private String domain; | ||
} |
23 changes: 23 additions & 0 deletions
23
...ger/src/main/java/io/mosip/registration/keymanager/dto/JWTSignatureVerifyResponseDto.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,23 @@ | ||
package io.mosip.registration.keymanager.dto; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class JWTSignatureVerifyResponseDto { | ||
|
||
/** | ||
* The Signature verification status. | ||
*/ | ||
private boolean signatureValid; | ||
|
||
/** | ||
* The Signature validation message. | ||
*/ | ||
private String message; | ||
|
||
/** | ||
* The Trust validation status. | ||
*/ | ||
private String trustValid; | ||
|
||
} |
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.