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 for
ZKCryptoManagerService interface- Since:
- 1.1.2
- Author:
- Mahammed Taheer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidzkDecrypt(ZKCryptoRequestDto cryptoRequestDto) Decrypt data requested with metadata.zkEncrypt(ZKCryptoRequestDto cryptoRequestDto) Encrypt the data requested with metadata.zkReEncryptRandomKey(String encryptedKey) Re-Encrypt Random Key with the master key.
-
Constructor Details
-
ZKCryptoManagerServiceImpl
public ZKCryptoManagerServiceImpl()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
zkEncrypt
Description copied from interface:ZKCryptoManagerServiceEncrypt the data requested with metadata.- Specified by:
zkEncryptin interfaceZKCryptoManagerService- Parameters:
cryptoRequestDto-ZKCryptoRequestDtoinstance- Returns:
ZKCryptoResponseDtoencrypted data
-
zkDecrypt
Description copied from interface:ZKCryptoManagerServiceDecrypt data requested with metadata.- Specified by:
zkDecryptin interfaceZKCryptoManagerService- Parameters:
cryptoRequestDto-ZKCryptoRequestDtoinstance- Returns:
ZKCryptoResponseDtodecrypted data
-
zkReEncryptRandomKey
Description copied from interface:ZKCryptoManagerServiceRe-Encrypt Random Key with the master key.- Specified by:
zkReEncryptRandomKeyin interfaceZKCryptoManagerService- Parameters:
encryptedKey- encrypted random key- Returns:
ReEncryptRandomKeyResponseDtoencrypted key
-