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 input data using input 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 input 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
@ResponseFilter @PreAuthorize("hasAnyRole(@signAuthRoles.getPostsign())") @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
@ResponseFilter @PreAuthorize("hasAnyRole(@signAuthRoles.getPostvalidate())") @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
@ResponseFilter @PreAuthorize("hasAnyRole(@signAuthRoles.getPostpdfsign())") @PostMapping("/pdf/sign") public io.mosip.kernel.core.http.ResponseWrapper<SignatureResponseDto> signPDF(@RequestBody @Valid @Valid io.mosip.kernel.core.http.RequestWrapper<PDFSignatureRequestDto> signatureResponseDto)
-
jwtSign
@ResponseFilter @PreAuthorize("hasAnyRole(@signAuthRoles.getPostjwtsign())") @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 input data using RS256 algorithm- Parameters:
requestDto-JWTSignatureRequestDtohaving required fields.- Returns:
- The
JWTSignatureResponseDto
-
jwtVerify
@ResponseFilter @PreAuthorize("hasAnyRole(@signAuthRoles.getPostjwtverify())") @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(@signAuthRoles.getPostjwssign())") @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 input data using input algorithm. Default Algorithm PS256.- Parameters:
requestDto-JWTSignatureRequestDtohaving required fields.- Returns:
- The
JWTSignatureResponseDto
-
-