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