Interface ZKCryptoManagerService
- All Known Implementing Classes:
ZKCryptoManagerServiceImpl
@Service
public interface ZKCryptoManagerService
This interface provides the methods which can be used for Zero Knowledge Encryption and
Decryption.
- Since:
- 1.1.2
- Author:
- Mahammed Taheer
-
Method Summary
Modifier and TypeMethodDescriptionzkDecrypt(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.
-
Method Details
-
zkEncrypt
Encrypt the data requested with metadata.- Parameters:
cryptoRequestDto-ZKCryptoRequestDtoinstance- Returns:
ZKCryptoResponseDtoencrypted data
-
zkDecrypt
Decrypt data requested with metadata.- Parameters:
cryptoRequestDto-ZKCryptoRequestDtoinstance- Returns:
ZKCryptoResponseDtodecrypted data
-
zkReEncryptRandomKey
Re-Encrypt Random Key with the master key.- Parameters:
encryptedKey- encrypted random key- Returns:
ReEncryptRandomKeyResponseDtoencrypted key
-