Class ZKCryptoManagerServiceImpl
- java.lang.Object
-
- io.mosip.kernel.zkcryptoservice.service.impl.ZKCryptoManagerServiceImpl
-
- All Implemented Interfaces:
ZKCryptoManagerService,org.springframework.beans.factory.InitializingBean
@Service @Transactional public class ZKCryptoManagerServiceImpl extends Object implements ZKCryptoManagerService, org.springframework.beans.factory.InitializingBean
Service Implementation forZKCryptoManagerServiceinterface- Since:
- 1.1.2
- Author:
- Mahammed Taheer
-
-
Constructor Summary
Constructors Constructor Description ZKCryptoManagerServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()ZKCryptoResponseDtozkDecrypt(ZKCryptoRequestDto cryptoRequestDto)Decrypt data requested with metadata.ZKCryptoResponseDtozkEncrypt(ZKCryptoRequestDto cryptoRequestDto)Encrypt the data requested with metadata.ReEncryptRandomKeyResponseDtozkReEncryptRandomKey(String encryptedKey)Re-Encrypt Random Key with the master key.
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
zkEncrypt
public ZKCryptoResponseDto zkEncrypt(ZKCryptoRequestDto cryptoRequestDto)
Description copied from interface:ZKCryptoManagerServiceEncrypt the data requested with metadata.- Specified by:
zkEncryptin interfaceZKCryptoManagerService- Parameters:
cryptoRequestDto-ZKCryptoRequestDtoinstance- Returns:
ZKCryptoResponseDtoencrypted data
-
zkDecrypt
public ZKCryptoResponseDto zkDecrypt(ZKCryptoRequestDto cryptoRequestDto)
Description copied from interface:ZKCryptoManagerServiceDecrypt data requested with metadata.- Specified by:
zkDecryptin interfaceZKCryptoManagerService- Parameters:
cryptoRequestDto-ZKCryptoRequestDtoinstance- Returns:
ZKCryptoResponseDtodecrypted data
-
zkReEncryptRandomKey
public ReEncryptRandomKeyResponseDto zkReEncryptRandomKey(String encryptedKey)
Description copied from interface:ZKCryptoManagerServiceRe-Encrypt Random Key with the master key.- Specified by:
zkReEncryptRandomKeyin interfaceZKCryptoManagerService- Parameters:
encryptedKey- encrypted random key- Returns:
ReEncryptRandomKeyResponseDtoencrypted key
-
-