Class ClientCryptoController
- java.lang.Object
-
- io.mosip.kernel.clientcrypto.controller.ClientCryptoController
-
@CrossOrigin @RestController public class ClientCryptoController extends Object
- Since:
- 1.1.2
- Author:
- Anusha Sunkada
-
-
Constructor Summary
Constructors Constructor Description ClientCryptoController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.mosip.kernel.core.http.ResponseWrapper<PublicKeyResponseDto>getEncPublicKey(@Valid io.mosip.kernel.core.http.RequestWrapper<PublicKeyRequestDto> publicKeyRequestDtoRequestWrapper)io.mosip.kernel.core.http.ResponseWrapper<PublicKeyResponseDto>getSigningPublicKey(@Valid io.mosip.kernel.core.http.RequestWrapper<PublicKeyRequestDto> publicKeyRequestDtoRequestWrapper)io.mosip.kernel.core.http.ResponseWrapper<TpmSignResponseDto>signData(@Valid io.mosip.kernel.core.http.RequestWrapper<TpmSignRequestDto> tpmSignRequestDtoRequestWrapper)io.mosip.kernel.core.http.ResponseWrapper<TpmCryptoResponseDto>tpmDecrypt(@Valid io.mosip.kernel.core.http.RequestWrapper<TpmCryptoRequestDto> tpmCryptoRequestDtoRequestWrapper)io.mosip.kernel.core.http.ResponseWrapper<TpmCryptoResponseDto>tpmEncrypt(@Valid io.mosip.kernel.core.http.RequestWrapper<TpmCryptoRequestDto> tpmCryptoRequestDtoRequestWrapper)io.mosip.kernel.core.http.ResponseWrapper<TpmSignVerifyResponseDto>verifySignature(@Valid io.mosip.kernel.core.http.RequestWrapper<TpmSignVerifyRequestDto> tpmSignVerifyRequestDtoRequestWrapper)
-
-
-
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:
-
-