@CrossOrigin @RestController public class CryptomanagerController extends Object
| Constructor and Description |
|---|
CryptomanagerController() |
| Modifier and Type | Method and Description |
|---|---|
io.mosip.kernel.core.http.ResponseWrapper<CryptomanagerResponseDto> |
decrypt(@Valid io.mosip.kernel.core.http.RequestWrapper<CryptomanagerRequestDto> cryptomanagerRequestDto)
Controller for Decrypt the data
|
io.mosip.kernel.core.http.ResponseWrapper<CryptomanagerResponseDto> |
encrypt(@Valid io.mosip.kernel.core.http.RequestWrapper<CryptomanagerRequestDto> cryptomanagerRequestDto)
Controller for Encrypt the data
|
@PreAuthorize(value="hasAnyRole(\'INDIVIDUAL\',\'ID_AUTHENTICATION\',\'TEST\', \'REGISTRATION_ADMIN\', \'REGISTRATION_SUPERVISOR\', \'REGISTRATION_OFFICER\', \'REGISTRATION_PROCESSOR\',\'PRE_REGISTRATION_ADMIN\',\'RESIDENT\')")
@ResponseFilter
@PostMapping(value="/encrypt",
produces="application/json")
public io.mosip.kernel.core.http.ResponseWrapper<CryptomanagerResponseDto> encrypt(@RequestBody @Valid
@Valid io.mosip.kernel.core.http.RequestWrapper<CryptomanagerRequestDto> cryptomanagerRequestDto)
cryptomanagerRequestDto - CryptomanagerRequestDto requestCryptomanagerResponseDto encrypted Data@PreAuthorize(value="hasAnyRole(\'INDIVIDUAL\',\'ID_AUTHENTICATION\', \'TEST\', \'REGISTRATION_ADMIN\', \'REGISTRATION_SUPERVISOR\', \'REGISTRATION_OFFICER\', \'REGISTRATION_PROCESSOR\',\'PRE_REGISTRATION_ADMIN\',\'RESIDENT\')")
@ResponseFilter
@PostMapping(value="/decrypt",
produces="application/json")
public io.mosip.kernel.core.http.ResponseWrapper<CryptomanagerResponseDto> decrypt(@RequestBody @Valid
@Valid io.mosip.kernel.core.http.RequestWrapper<CryptomanagerRequestDto> cryptomanagerRequestDto)
cryptomanagerRequestDto - CryptomanagerRequestDto requestCryptomanagerResponseDto decrypted DataCopyright © 2020. All rights reserved.