@Component public class KeyManager extends Object
| Constructor and Description |
|---|
KeyManager() |
| Modifier and Type | Method and Description |
|---|---|
String |
encryptData(Map<String,Object> responseBody,
com.fasterxml.jackson.databind.ObjectMapper mapper)
This method is used to encrypt the KYC identity response.
|
String |
kernelDecrypt(String data,
String refId,
String aad,
String salt) |
String |
kernelDecryptAndDecode(String data,
String refId) |
Map<String,Object> |
requestData(Map<String,Object> requestBody,
com.fasterxml.jackson.databind.ObjectMapper mapper,
String refId)
requestData method used to decipher the request block
RequestDTO
present in AuthRequestDTO AuthRequestDTO. |
String |
signResponse(String responseAsString)
This method is used to digitally sign the response
|
public Map<String,Object> requestData(Map<String,Object> requestBody, com.fasterxml.jackson.databind.ObjectMapper mapper, String refId) throws IdAuthenticationAppException
RequestDTO
present in AuthRequestDTO AuthRequestDTO.requestBody - the request bodymapper - the mapperrefId - the ref idIdAuthenticationAppException - the id authentication app exceptionpublic String kernelDecryptAndDecode(String data, String refId) throws IdAuthenticationAppException
IdAuthenticationAppExceptionpublic String kernelDecrypt(String data, String refId, String aad, String salt) throws IdAuthenticationAppException
IdAuthenticationAppExceptionpublic String encryptData(Map<String,Object> responseBody, com.fasterxml.jackson.databind.ObjectMapper mapper) throws IdAuthenticationAppException
responseBody - the response bodymapper - the mapperIdAuthenticationAppException - the id authentication app exceptionpublic String signResponse(String responseAsString) throws IdAuthenticationAppException
responseAsString - the response got after authentication which to be signedIdAuthenticationAppException - the id authentication app exceptionCopyright © 2020. All rights reserved.