@CrossOrigin @RestController public class KeymanagerController extends Object
| Constructor and Description |
|---|
KeymanagerController() |
| Modifier and Type | Method and Description |
|---|---|
io.mosip.kernel.core.http.ResponseWrapper<PublicKeyResponse<String>> |
getPublicKey(String applicationId,
String timestamp,
Optional<String> referenceId)
Request mapping to get Public Key
|
io.mosip.kernel.core.http.ResponseWrapper<SignatureResponseDto> |
signPDF(@Valid io.mosip.kernel.core.http.RequestWrapper<PDFSignatureRequestDto> signatureResponseDto) |
@PreAuthorize(value="hasAnyRole(\'INDIVIDUAL\',\'REGISTRATION_PROCESSOR\',\'REGISTRATION_ADMIN\',\'REGISTRATION_SUPERVISOR\',\'REGISTRATION_OFFICER\',\'ID_AUTHENTICATION\',\'TEST\',\'PRE_REGISTRATION_ADMIN\',\'RESIDENT\')")
@ResponseFilter
@GetMapping(value="/publickey/{applicationId}")
public io.mosip.kernel.core.http.ResponseWrapper<PublicKeyResponse<String>> getPublicKey(@PathVariable(value="applicationId")
String applicationId,
@RequestParam(value="timeStamp")
String timestamp,
@RequestParam(value="referenceId")
Optional<String> referenceId)
applicationId - Application id of the application requesting publicKeytimeStamp - Timestamp of the requestreferenceId - Reference id of the application requesting publicKeyPublicKeyResponse instance@PreAuthorize(value="hasAnyRole(\'INDIVIDUAL\',\'ID_AUTHENTICATION\', \'REGISTRATION_ADMIN\', \'REGISTRATION_SUPERVISOR\', \'REGISTRATION_OFFICER\', \'REGISTRATION_PROCESSOR\',\'PRE_REGISTRATION_ADMIN\',\'RESIDENT\')") @ResponseFilter @PostMapping(value="/pdf/sign") public io.mosip.kernel.core.http.ResponseWrapper<SignatureResponseDto> signPDF(@RequestBody @Valid @Valid io.mosip.kernel.core.http.RequestWrapper<PDFSignatureRequestDto> signatureResponseDto)
Copyright © 2020. All rights reserved.