Class ClientCryptoController


  • @CrossOrigin
    @RestController
    public class ClientCryptoController
    extends Object
    Since:
    1.1.2
    Author:
    Anusha Sunkada
    • Constructor Detail

      • ClientCryptoController

        public ClientCryptoController()
    • Method Detail

      • signData

        @PreAuthorize("hasAnyRole(@clientCryptoAuthRoles.getPostcssign())")
        @ResponseFilter
        @PostMapping(value="/cssign",
                     produces="application/json")
        public io.mosip.kernel.core.http.ResponseWrapper<TpmSignResponseDto> signData​(@RequestBody @Valid
                                                                                      @Valid io.mosip.kernel.core.http.RequestWrapper<TpmSignRequestDto> tpmSignRequestDtoRequestWrapper)
        Parameters:
        tpmSignRequestDtoRequestWrapper -
        Returns:
      • verifySignature

        @PreAuthorize("hasAnyRole(@clientCryptoAuthRoles.getPostcsverifysign())")
        @ResponseFilter
        @PostMapping(value="/csverifysign",
                     produces="application/json")
        public io.mosip.kernel.core.http.ResponseWrapper<TpmSignVerifyResponseDto> verifySignature​(@RequestBody @Valid
                                                                                                   @Valid io.mosip.kernel.core.http.RequestWrapper<TpmSignVerifyRequestDto> tpmSignVerifyRequestDtoRequestWrapper)
        Parameters:
        tpmSignVerifyRequestDtoRequestWrapper -
        Returns:
      • tpmEncrypt

        @PreAuthorize("hasAnyRole(@clientCryptoAuthRoles.getPosttpmencrypt())")
        @ResponseFilter
        @PostMapping(value="/tpmencrypt",
                     produces="application/json")
        public io.mosip.kernel.core.http.ResponseWrapper<TpmCryptoResponseDto> tpmEncrypt​(@RequestBody @Valid
                                                                                          @Valid io.mosip.kernel.core.http.RequestWrapper<TpmCryptoRequestDto> tpmCryptoRequestDtoRequestWrapper)
        Parameters:
        tpmCryptoRequestDtoRequestWrapper -
        Returns:
      • tpmDecrypt

        @PreAuthorize("hasAnyRole(@clientCryptoAuthRoles.getPosttpmdecrypt())")
        @ResponseFilter
        @PostMapping(value="/tpmdecrypt",
                     produces="application/json")
        public io.mosip.kernel.core.http.ResponseWrapper<TpmCryptoResponseDto> tpmDecrypt​(@RequestBody @Valid
                                                                                          @Valid io.mosip.kernel.core.http.RequestWrapper<TpmCryptoRequestDto> tpmCryptoRequestDtoRequestWrapper)
        Parameters:
        tpmCryptoRequestDtoRequestWrapper -
        Returns:
      • getSigningPublicKey

        @PreAuthorize("hasAnyRole(@clientCryptoAuthRoles.getPosttpmsigningpublickey())")
        @ResponseFilter
        @PostMapping(value="/tpmsigning/publickey",
                     produces="application/json")
        public io.mosip.kernel.core.http.ResponseWrapper<PublicKeyResponseDto> getSigningPublicKey​(@RequestBody @Valid
                                                                                                   @Valid io.mosip.kernel.core.http.RequestWrapper<PublicKeyRequestDto> publicKeyRequestDtoRequestWrapper)
        Parameters:
        publicKeyRequestDtoRequestWrapper -
        Returns:
      • getEncPublicKey

        @PreAuthorize("hasAnyRole(@clientCryptoAuthRoles.getPosttpmencryptionpublickey())")
        @ResponseFilter
        @PostMapping(value="/tpmencryption/publickey",
                     produces="application/json")
        public io.mosip.kernel.core.http.ResponseWrapper<PublicKeyResponseDto> getEncPublicKey​(@RequestBody @Valid
                                                                                               @Valid io.mosip.kernel.core.http.RequestWrapper<PublicKeyRequestDto> publicKeyRequestDtoRequestWrapper)
        Parameters:
        publicKeyRequestDtoRequestWrapper -
        Returns: