public interface PacketReaderService
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkFileExistence(String id,
String fileName,
String source)
Check file existence.
|
Object |
getCompleteIdObject(String rid,
String sourcepackets)
Get the complete idObject
|
InputStream |
getEncryptedSourcePacket(String rid,
InputStream inputStream,
String source)
Get the encrypted source packet from the parent zip
|
InputStream |
getFile(String id,
String fileName,
String source)
Gets the file.
|
Double |
getIdSchemaVersionFromPacket(String rid)
Get the schema version from inside default packet
|
boolean checkFileExistence(String id, String fileName, String source) throws PacketDecryptionFailureException, IOException, ApiNotAccessibleException
id - the idfileName - the file namesource - the sourcePacketDecryptionFailureException - the packet decryption failure
exceptionIOException - Signals that an I/O exception has
occurred.ApiNotAccessibleExceptionInputStream getFile(String id, String fileName, String source) throws IOException, PacketDecryptionFailureException, io.mosip.kernel.core.exception.IOException, ApiNotAccessibleException
id - the idfileName - the file namesource - the sourceIOException - Signals that an I/O exception has
occurred.IOException - Signals that an I/O exception has
occurred.PacketDecryptionFailureException - the packet decryption failure
exceptionio.mosip.kernel.core.exception.IOExceptionApiNotAccessibleExceptionInputStream getEncryptedSourcePacket(String rid, InputStream inputStream, String source) throws IOException
rid - : The ridinputStream - : parent zip input streamsource - : the source (EX - id, evidence, optional)IOExceptionObject getCompleteIdObject(String rid, String sourcepackets) throws PacketDecryptionFailureException, ApiNotAccessibleException, IOException
rid - : The ridIOExceptionApiNotAccessibleExceptionPacketDecryptionFailureExceptionDouble getIdSchemaVersionFromPacket(String rid) throws PacketDecryptionFailureException, ApiNotAccessibleException, IOException
rid - : registration id to get default packetPacketDecryptionFailureExceptionApiNotAccessibleExceptionIOExceptionCopyright © 2020. All rights reserved.