Class SignatureController
- java.lang.Object
-
- io.mosip.kernel.signature.controller.SignatureController
-
@RestController @CrossOrigin public class SignatureController extends Object
- Since:
- 1.0.0
- Author:
- Uday Kumar
-
-
Constructor Summary
Constructors Constructor Description SignatureController()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description io.mosip.kernel.core.http.ResponseWrapper<JWTSignatureResponseDto>jwsSign(@Valid io.mosip.kernel.core.http.RequestWrapper<JWSSignatureRequestDto> requestDto)Function to do JSON Web Signature(JWS) for the inputted data using inputted algorithm.io.mosip.kernel.core.http.ResponseWrapper<JWTSignatureResponseDto>jwtSign(@Valid io.mosip.kernel.core.http.RequestWrapper<JWTSignatureRequestDto> requestDto)Function to do JSON Web Signature(JWS) for the inputted data using RS256 algorithmio.mosip.kernel.core.http.ResponseWrapper<JWTSignatureVerifyResponseDto>jwtVerify(@Valid io.mosip.kernel.core.http.RequestWrapper<JWTSignatureVerifyRequestDto> requestDto)Function to JWT Signature verificationio.mosip.kernel.core.http.ResponseWrapper<SignResponseDto>sign(@Valid io.mosip.kernel.core.http.RequestWrapper<SignRequestDto> requestDto)Deprecated.io.mosip.kernel.core.http.ResponseWrapper<SignatureResponseDto>signPDF(@Valid io.mosip.kernel.core.http.RequestWrapper<PDFSignatureRequestDto> signatureResponseDto)io.mosip.kernel.core.http.ResponseWrapper<ValidatorResponseDto>validate(@Valid io.mosip.kernel.core.http.RequestWrapper<TimestampRequestDto> timestampRequestDto)Deprecated.
-
-
-
Method Detail
-
sign
@PreAuthorize("hasAnyRole(\'ZONAL_ADMIN\',\'GLOBAL_ADMIN\',\'INDIVIDUAL\',\'ID_AUTHENTICATION\', \'REGISTRATION_ADMIN\', \'REGISTRATION_SUPERVISOR\', \'REGISTRATION_OFFICER\', \'REGISTRATION_PROCESSOR\',\'PRE_REGISTRATION_ADMIN\',\'RESIDENT\')") @ResponseFilter @PostMapping("/sign") @Deprecated public io.mosip.kernel.core.http.ResponseWrapper<SignResponseDto> sign(@RequestBody @Valid @Valid io.mosip.kernel.core.http.RequestWrapper<SignRequestDto> requestDto)Deprecated.Function to sign response- Parameters:
requestDto-SignRequestDtohaving required fields.- Returns:
- The
SignatureResponse
-
validate
@PreAuthorize("hasAnyRole(\'ZONAL_ADMIN\',\'GLOBAL_ADMIN\',\'INDIVIDUAL\',\'ID_AUTHENTICATION\', \'REGISTRATION_ADMIN\', \'REGISTRATION_SUPERVISOR\', \'REGISTRATION_OFFICER\', \'REGISTRATION_PROCESSOR\',\'PRE_REGISTRATION_ADMIN\')") @ResponseFilter @PostMapping("/validate") @Deprecated public io.mosip.kernel.core.http.ResponseWrapper<ValidatorResponseDto> validate(@RequestBody @Valid @Valid io.mosip.kernel.core.http.RequestWrapper<TimestampRequestDto> timestampRequestDto)Deprecated.
-
signPDF
@PreAuthorize("hasAnyRole(\'ZONAL_ADMIN\',\'GLOBAL_ADMIN\',\'INDIVIDUAL\',\'ID_AUTHENTICATION\', \'REGISTRATION_ADMIN\', \'REGISTRATION_SUPERVISOR\', \'REGISTRATION_OFFICER\', \'REGISTRATION_PROCESSOR\',\'PRE_REGISTRATION_ADMIN\',\'RESIDENT\')") @ResponseFilter @PostMapping("/pdf/sign") public io.mosip.kernel.core.http.ResponseWrapper<SignatureResponseDto> signPDF(@RequestBody @Valid @Valid io.mosip.kernel.core.http.RequestWrapper<PDFSignatureRequestDto> signatureResponseDto)
-
jwtSign
@PreAuthorize("hasAnyRole(\'ZONAL_ADMIN\',\'GLOBAL_ADMIN\',\'INDIVIDUAL\',\'ID_AUTHENTICATION\', \'REGISTRATION_ADMIN\', \'REGISTRATION_SUPERVISOR\', \'REGISTRATION_OFFICER\', \'REGISTRATION_PROCESSOR\',\'PRE_REGISTRATION_ADMIN\',\'RESIDENT\')") @ResponseFilter @PostMapping("/jwtSign") public io.mosip.kernel.core.http.ResponseWrapper<JWTSignatureResponseDto> jwtSign(@RequestBody @Valid @Valid io.mosip.kernel.core.http.RequestWrapper<JWTSignatureRequestDto> requestDto)Function to do JSON Web Signature(JWS) for the inputted data using RS256 algorithm- Parameters:
requestDto-JWTSignatureRequestDtohaving required fields.- Returns:
- The
JWTSignatureResponseDto
-
jwtVerify
@PreAuthorize("hasAnyRole(\'ZONAL_ADMIN\',\'GLOBAL_ADMIN\',\'INDIVIDUAL\',\'ID_AUTHENTICATION\', \'REGISTRATION_ADMIN\', \'REGISTRATION_SUPERVISOR\', \'REGISTRATION_OFFICER\', \'REGISTRATION_PROCESSOR\',\'PRE_REGISTRATION_ADMIN\',\'RESIDENT\')") @ResponseFilter @PostMapping("/jwtVerify") public io.mosip.kernel.core.http.ResponseWrapper<JWTSignatureVerifyResponseDto> jwtVerify(@RequestBody @Valid @Valid io.mosip.kernel.core.http.RequestWrapper<JWTSignatureVerifyRequestDto> requestDto)Function to JWT Signature verification- Parameters:
requestDto-JWTSignatureVerifyRequestDtohaving required fields.- Returns:
- The
JWTSignatureVerifyResponseDto
-
jwsSign
@ResponseFilter @PreAuthorize("hasAnyRole(\'ZONAL_ADMIN\',\'GLOBAL_ADMIN\',\'INDIVIDUAL\',\'ID_AUTHENTICATION\', \'REGISTRATION_ADMIN\', \'REGISTRATION_SUPERVISOR\', \'REGISTRATION_OFFICER\', \'REGISTRATION_PROCESSOR\',\'PRE_REGISTRATION_ADMIN\',\'RESIDENT\',\'CREDENTIAL_ISSUANCE\')") @PostMapping("/jwsSign") public io.mosip.kernel.core.http.ResponseWrapper<JWTSignatureResponseDto> jwsSign(@RequestBody @Valid @Valid io.mosip.kernel.core.http.RequestWrapper<JWSSignatureRequestDto> requestDto)Function to do JSON Web Signature(JWS) for the inputted data using inputted algorithm. Default Algorithm PS256.- Parameters:
requestDto-JWTSignatureRequestDtohaving required fields.- Returns:
- The
JWTSignatureResponseDto
-
-