Class AesGcmEncryptedFileIoProcessor
- Namespace
- IO.Scanbot.Sdk.Persistence.Fileio
- Assembly
- DocumentSDK.NET.Droid.dll
public sealed class AesGcmEncryptedFileIoProcessor : Object, IFileIOProcessor, IBaseFileIOProcessor, ICoreStreamProvider, IImageFileIOProcessor, IJavaObject, IDisposable, IJavaPeerable
- Inheritance
-
AesGcmEncryptedFileIoProcessor
- Implements
-
Constructors
AesGcmEncryptedFileIoProcessor(IAesGcmKeyProvider, AESGCMEncrypterMode, bool)
public AesGcmEncryptedFileIoProcessor(IAesGcmKeyProvider protocol, AesGcmEncryptedFileIoProcessor.AESGCMEncrypterMode mode, bool generateAadFromContext)
Parameters
protocol
IAesGcmKeyProvider
mode
AesGcmEncryptedFileIoProcessor.AESGCMEncrypterMode
generateAadFromContext
bool
Fields
KCCKeySizeAES128
public const int KCCKeySizeAES128 = 16
Field Value
- int
KCCKeySizeAES256
public const int KCCKeySizeAES256 = 32
Field Value
- int
Properties
A
public IAesGcmKeyProvider A { get; set; }
Property Value
- IAesGcmKeyProvider
B
public AesGcmEncryptedFileIoProcessor.AESGCMEncrypterMode B { get; set; }
Property Value
- AesGcmEncryptedFileIoProcessor.AESGCMEncrypterMode
C
public bool C { get; set; }
Property Value
- bool
D
public bool D { get; set; }
Property Value
- bool
UseEncryption
public bool UseEncryption { get; }
Property Value
- bool
Methods
Copy(File, File)
public void Copy(File source, File destination)
Parameters
source
File
destination
File
CopyRaw(File, File)
public void CopyRaw(File encryptedSource, File destination)
Parameters
encryptedSource
File
destination
File
Move(File, File)
public void Move(File source, File destination)
Parameters
source
File
destination
File
public Stream OpenFileInputStream(File sourceFile)
Parameters
sourceFile
File
Returns
- Stream
OpenFileOutputStream(File)
public Stream OpenFileOutputStream(File destinationFile)
Parameters
destinationFile
File
Returns
- Stream
Read(File)
public byte[] Read(File encryptedSource)
Parameters
encryptedSource
File
Returns
- byte[]
ReadImage(Uri, Options)
public Bitmap ReadImage(Uri encryptedSourceUri, BitmapFactory.Options options)
Parameters
encryptedSourceUri
Uri
options
Options
Returns
- Bitmap
ReadImage(File, Options)
public Bitmap ReadImage(File encryptedSource, BitmapFactory.Options options)
Parameters
encryptedSource
File
options
Options
Returns
- Bitmap
Write(byte[], File)
public void Write(byte[] byteArray, File destination)
Parameters
byteArray
byte[]
destination
File
public void WriteImage(Bitmap bitmap, Bitmap.CompressFormat compressFormat, int quality, File destination)
Parameters
bitmap
Bitmap
compressFormat
CompressFormat
quality
int
destination
File