decryptInputStream

abstract fun decryptInputStream(inputStream: InputStream): InputStream

Perform Cryptographic decryption of an input stream using provided cipher key.

Return

InputStream containing the encryption of inputStream using PNConfiguration.getCipherKey

Parameters

inputStream

InputStream to be encrypted.

Throws

Throws exception in case of failed decryption.


abstract fun decryptInputStream(inputStream: InputStream, cipherKey: String?): InputStream

Perform Cryptographic decryption of an input stream using provided cipher key.

Return

InputStream containing the encryption of inputStream using cipherKey.

Parameters

inputStream

InputStream to be encrypted.

cipherKey

Cipher key to be used for decryption.

Throws

Throws exception in case of failed decryption.