Class PacketDecryptorImpl
- java.lang.Object
-
- io.mosip.kernel.packetmanager.impl.PacketDecryptorImpl
-
- All Implemented Interfaces:
PacketDecryptor
@Component public class PacketDecryptorImpl extends Object implements PacketDecryptor
Decryptor class for packet decryption.- Since:
- 1.0.0
- Author:
- Sowmya
-
-
Constructor Summary
Constructors Constructor Description PacketDecryptorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamdecrypt(InputStream encryptedPacket, String registrationId)This Method provide the functionality to decrypt packet.
-
-
-
Method Detail
-
decrypt
public InputStream decrypt(InputStream encryptedPacket, String registrationId) throws PacketDecryptionFailureException, ApiNotAccessibleException
Description copied from interface:PacketDecryptorThis Method provide the functionality to decrypt packet.- Specified by:
decryptin interfacePacketDecryptor- Parameters:
encryptedPacket- encrypted packet to be decryptedregistrationId- the registration id- Returns:
- decrypted packet
- Throws:
PacketDecryptionFailureException- if error occured while decryptingApiNotAccessibleException- if error occured while
-
-