Table of Contents

Class AESEncryptedFileIOProcessor

Namespace
IO.Scanbot.Sdk.Persistence.Fileio
Assembly
BarcodeSDK.NET.Droid.dll
[Register("io/scanbot/sdk/persistence/fileio/AESEncryptedFileIOProcessor", DoNotGenerateAcw = true)]
public sealed class AESEncryptedFileIOProcessor : Object, IFileIOProcessor, IBaseFileIOProcessor, IImageFileIOProcessor, IJavaObject, IJavaPeerable, IDisposable
Inheritance
AESEncryptedFileIOProcessor
Implements
Inherited Members

Constructors

AESEncryptedFileIOProcessor(string, AESEncrypterMode)

[Register(".ctor", "(Ljava/lang/String;Lio/scanbot/sdk/persistence/fileio/AESEncryptedFileIOProcessor$AESEncrypterMode;)V", "")]
public AESEncryptedFileIOProcessor(string password, AESEncryptedFileIOProcessor.AESEncrypterMode encrypterMode)

Parameters

password string
encrypterMode AESEncryptedFileIOProcessor.AESEncrypterMode

Fields

DefaultEncryptionAlgorithm

[Register("DEFAULT_ENCRYPTION_ALGORITHM")]
public const string DefaultEncryptionAlgorithm = "AES/CBC/PKCS5Padding"

Field Value

string

DefaultKeyAlgorithm

[Register("DEFAULT_KEY_ALGORITHM")]
public const string DefaultKeyAlgorithm = "AES"

Field Value

string

DefaultKeyGenerationAlgorithm

[Register("DEFAULT_KEY_GENERATION_ALGORITHM")]
public const string DefaultKeyGenerationAlgorithm = "PBKDF2WithHmacSHA1"

Field Value

string

KCCKeySizeAES128

[Register("kCCKeySizeAES128")]
public const int KCCKeySizeAES128 = 16

Field Value

int

KCCKeySizeAES256

[Register("kCCKeySizeAES256")]
public const int KCCKeySizeAES256 = 32

Field Value

int

Properties

A

[Register("a")]
public AESEncryptedFileIOProcessor.AESEncrypterMode A { get; set; }

Property Value

AESEncryptedFileIOProcessor.AESEncrypterMode

B

[Register("b")]
public bool B { get; set; }

Property Value

bool

C

[Register("c")]
public ISecretKey C { get; set; }

Property Value

ISecretKey

D

[Register("d")]
public IList<byte> D { get; set; }

Property Value

IList<byte>

E

[Register("e")]
public IList<byte> E { get; set; }

Property Value

IList<byte>

EncrypterMode

public AESEncryptedFileIOProcessor.AESEncrypterMode EncrypterMode { get; }

Property Value

AESEncryptedFileIOProcessor.AESEncrypterMode

F

[Register("f")]
public int F { get; set; }

Property Value

int

IterationCount

public int IterationCount { get; }

Property Value

int

Key

public ISecretKey Key { get; }

Property Value

ISecretKey

UseEncryption

public bool UseEncryption { get; }

Property Value

bool

Methods

CopyRaw(File, File)

[Register("copyRaw", "(Ljava/io/File;Ljava/io/File;)V", "")]
public void CopyRaw(File encryptedSource, File destination)

Parameters

encryptedSource File
destination File

GetInitializationVector()

[Register("getInitializationVector", "()[B", "")]
public byte[] GetInitializationVector()

Returns

byte[]

GetSalt()

[Register("getSalt", "()[B", "")]
public byte[] GetSalt()

Returns

byte[]

OpenFileInputStream(File)

[Register("openFileInputStream", "(Ljava/io/File;)Ljava/io/InputStream;", "")]
public Stream OpenFileInputStream(File sourceFile)

Parameters

sourceFile File

Returns

Stream

OpenFileOutputStream(File)

[Register("openFileOutputStream", "(Ljava/io/File;)Ljava/io/OutputStream;", "")]
public Stream OpenFileOutputStream(File destinationFile)

Parameters

destinationFile File

Returns

Stream

Read(File)

[Register("read", "(Ljava/io/File;)[B", "")]
public byte[] Read(File encryptedSource)

Parameters

encryptedSource File

Returns

byte[]

ReadImage(Uri, Options)

[Register("readImage", "(Landroid/net/Uri;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;", "")]
public Bitmap ReadImage(Uri encryptedSourceUri, BitmapFactory.Options options)

Parameters

encryptedSourceUri Uri
options BitmapFactory.Options

Returns

Bitmap

ReadImage(File, Options)

[Register("readImage", "(Ljava/io/File;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;", "")]
public Bitmap ReadImage(File encryptedSource, BitmapFactory.Options options)

Parameters

encryptedSource File
options BitmapFactory.Options

Returns

Bitmap

Write(byte[], File)

[Register("write", "([BLjava/io/File;)V", "")]
public void Write(byte[] byteArray, File destination)

Parameters

byteArray byte[]
destination File

WriteImage(Bitmap, CompressFormat, int, File)

[Register("writeImage", "(Landroid/graphics/Bitmap;Landroid/graphics/Bitmap$CompressFormat;ILjava/io/File;)V", "")]
public void WriteImage(Bitmap bitmap, Bitmap.CompressFormat compressFormat, int quality, File destination)

Parameters

bitmap Bitmap
compressFormat Bitmap.CompressFormat
quality int
destination File