-
- All Implemented Interfaces:
-
io.scanbot.sdk.persistence.fileio.BaseFileIOProcessor,io.scanbot.sdk.persistence.fileio.FileIOProcessor,io.scanbot.sdk.persistence.fileio.ImageFileIOProcessor
public final class AESEncryptedFileIOProcessor implements FileIOProcessorFile processor which performs AES based encryption/decryption
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAESEncryptedFileIOProcessor.Companionpublic enumAESEncryptedFileIOProcessor.AESEncrypterModeRepresents supported AES key sizes
-
Field Summary
Fields Modifier and Type Field Description private final BooleanuseEncryptionprivate final SecretKeykeyprivate final ByteArrayinitializationVectorprivate final ByteArraysaltprivate final IntegeriterationCountprivate final AESEncryptedFileIOProcessor.AESEncrypterModeencrypterMode
-
Constructor Summary
Constructors Constructor Description AESEncryptedFileIOProcessor(String password, AESEncryptedFileIOProcessor.AESEncrypterMode encrypterMode)
-
Method Summary
Modifier and Type Method Description BooleangetUseEncryption()final SecretKeygetKey()final ByteArraygetInitializationVector()final ByteArraygetSalt()final IntegergetIterationCount()final AESEncryptedFileIOProcessor.AESEncrypterModegetEncrypterMode()UnitwriteImage(Bitmap bitmap, Bitmap.CompressFormat compressFormat, Integer quality, File destination)BitmapreadImage(File encryptedSource, BitmapFactory.Options options)BitmapreadImage(Uri encryptedSourceUri, BitmapFactory.Options options)ByteArrayread(File encryptedSource)Unitwrite(ByteArray byteArray, File destination)UnitcopyRaw(File encryptedSource, File destination)OutputStreamopenFileOutputStream(File destinationFile)InputStreamopenFileInputStream(File sourceFile)-
-
Constructor Detail
-
AESEncryptedFileIOProcessor
AESEncryptedFileIOProcessor(String password, AESEncryptedFileIOProcessor.AESEncrypterMode encrypterMode)
-
-
Method Detail
-
getUseEncryption
Boolean getUseEncryption()
-
getInitializationVector
final ByteArray getInitializationVector()
-
getIterationCount
final Integer getIterationCount()
-
getEncrypterMode
final AESEncryptedFileIOProcessor.AESEncrypterMode getEncrypterMode()
-
writeImage
Unit writeImage(Bitmap bitmap, Bitmap.CompressFormat compressFormat, Integer quality, File destination)
-
readImage
Bitmap readImage(File encryptedSource, BitmapFactory.Options options)
-
readImage
Bitmap readImage(Uri encryptedSourceUri, BitmapFactory.Options options)
-
openFileOutputStream
OutputStream openFileOutputStream(File destinationFile)
-
openFileInputStream
InputStream openFileInputStream(File sourceFile)
-
-
-
-