ArchiveReader Class
Properties Methods Events Config Settings Errors
The ArchiveReader class supports inspection and extraction of files from zip, tar, gzip and bzip2 archives.
Syntax
ArchiveReader
Remarks
ArchiveReader shows and extracts archived files.
Property List
The following is the full list of the properties of the class with short descriptions. Click on the links for further details.
ArchiveType | The type of the archive file. |
DecryptionCertCount | The number of records in the DecryptionCert arrays. |
DecryptionCertBytes | Returns the raw certificate data in DER format. |
DecryptionCertHandle | Allows to get or set a 'handle', a unique identifier of the underlying property object. |
DecryptionPassword | The decryption password. |
FileData | The contents of the last extracted file. |
FileCount | The number of records in the File arrays. |
FileAction | The action to apply to the file. |
FileCompressedSize | The size of the file after compression. |
FileDataSource | The type of the data source for this entry. |
FileDirectory | Tells if the entry is a directory or a regular file. |
FileEncryptionAlgorithm | Returns the symmetric algorithm that was used to encrypt the file. |
FileEncryptionKeyLength | Returns the length, in bits, of the encryption key. |
FileEncryptionType | The type of encryption applied to the file. |
FileFileName | The original name of the compressed file or folder. |
FileFolder | The containing folder of the entry. |
FileLocalPath | The local path associated with this entry. |
FileMTime | The entry's last modification time. |
FileNewFile | Indicates whether the entry corresponds to a file to be added to the archive. |
FilePath | The full internal path of the archived entry. |
FileSignatureCount | The number of signatures covering the entry. |
FileSigned | Indicates whether the entry is signed. |
FileSize | The size of the file before compression. |
FIPSMode | Reserved. |
HashAlgorithm | Returns the hash algorithm that was used to generate the signature. |
KnownCertCount | The number of records in the KnownCert arrays. |
KnownCertBytes | Returns the raw certificate data in DER format. |
KnownCertHandle | Allows to get or set a 'handle', a unique identifier of the underlying property object. |
Opened | Indicates if the class is in the open state. |
SignatureValidationResult | The signature validation result. |
SigningCertBytes | Returns the raw certificate data in DER format. |
SigningCertCA | Indicates whether the certificate has a CA capability (a setting in the BasicConstraints extension). |
SigningCertCAKeyID | A unique identifier (fingerprint) of the CA certificate's private key. |
SigningCertCRLDistributionPoints | Locations of the CRL (Certificate Revocation List) distribution points used to check this certificate's validity. |
SigningCertCurve | Specifies the elliptic curve of the EC public key. |
SigningCertFingerprint | Contains the fingerprint (a hash imprint) of this certificate. |
SigningCertFriendlyName | Contains an associated alias (friendly name) of the certificate. |
SigningCertHandle | Allows to get or set a 'handle', a unique identifier of the underlying property object. |
SigningCertHashAlgorithm | Specifies the hash algorithm to be used in the operations on the certificate (such as key signing) SB_HASH_ALGORITHM_SHA1 SHA1 SB_HASH_ALGORITHM_SHA224 SHA224 SB_HASH_ALGORITHM_SHA256 SHA256 SB_HASH_ALGORITHM_SHA384 SHA384 SB_HASH_ALGORITHM_SHA512 SHA512 SB_HASH_ALGORITHM_MD2 MD2 SB_HASH_ALGORITHM_MD4 MD4 SB_HASH_ALGORITHM_MD5 MD5 SB_HASH_ALGORITHM_RIPEMD160 RIPEMD160 SB_HASH_ALGORITHM_CRC32 CRC32 SB_HASH_ALGORITHM_SSL3 SSL3 SB_HASH_ALGORITHM_GOST_R3411_1994 GOST1994 SB_HASH_ALGORITHM_WHIRLPOOL WHIRLPOOL SB_HASH_ALGORITHM_POLY1305 POLY1305 SB_HASH_ALGORITHM_SHA3_224 SHA3_224 SB_HASH_ALGORITHM_SHA3_256 SHA3_256 SB_HASH_ALGORITHM_SHA3_384 SHA3_384 SB_HASH_ALGORITHM_SHA3_512 SHA3_512 SB_HASH_ALGORITHM_BLAKE2S_128 BLAKE2S_128 SB_HASH_ALGORITHM_BLAKE2S_160 BLAKE2S_160 SB_HASH_ALGORITHM_BLAKE2S_224 BLAKE2S_224 SB_HASH_ALGORITHM_BLAKE2S_256 BLAKE2S_256 SB_HASH_ALGORITHM_BLAKE2B_160 BLAKE2B_160 SB_HASH_ALGORITHM_BLAKE2B_256 BLAKE2B_256 SB_HASH_ALGORITHM_BLAKE2B_384 BLAKE2B_384 SB_HASH_ALGORITHM_BLAKE2B_512 BLAKE2B_512 SB_HASH_ALGORITHM_SHAKE_128 SHAKE_128 SB_HASH_ALGORITHM_SHAKE_256 SHAKE_256 SB_HASH_ALGORITHM_SHAKE_128_LEN SHAKE_128_LEN SB_HASH_ALGORITHM_SHAKE_256_LEN SHAKE_256_LEN . |
SigningCertIssuer | The common name of the certificate issuer (CA), typically a company name. |
SigningCertIssuerRDN | A collection of information, in the form of [OID, Value] pairs, uniquely identifying the certificate issuer. |
SigningCertKeyAlgorithm | Specifies the public key algorithm of this certificate. |
SigningCertKeyBits | Returns the length of the public key. |
SigningCertKeyFingerprint | Returns a fingerprint of the public key contained in the certificate. |
SigningCertKeyUsage | Indicates the purposes of the key contained in the certificate, in the form of an OR'ed flag set. |
SigningCertKeyValid | Returns True if the certificate's key is cryptographically valid, and False otherwise. |
SigningCertOCSPLocations | Locations of OCSP (Online Certificate Status Protocol) services that can be used to check this certificate's validity, as recorded by the CA. |
SigningCertPolicyIDs | Contains identifiers (OIDs) of the applicable certificate policies. |
SigningCertPublicKeyBytes | Contains the certificate's public key in DER format. |
SigningCertSelfSigned | Indicates whether the certificate is self-signed (root) or signed by an external CA. |
SigningCertSerialNumber | Returns the certificate's serial number. |
SigningCertSigAlgorithm | Indicates the algorithm that was used by the CA to sign this certificate. |
SigningCertSubject | The common name of the certificate holder, typically an individual's name, a URL, an e-mail address, or a company name. |
SigningCertSubjectKeyID | Contains a unique identifier (fingerprint) of the certificate's private key. |
SigningCertSubjectRDN | A collection of information, in the form of [OID, Value] pairs, uniquely identifying the certificate holder (subject). |
SigningCertValidFrom | The time point at which the certificate becomes valid, in UTC. |
SigningCertValidTo | The time point at which the certificate expires, in UTC. |
Method List
The following is the full list of the methods of the class with short descriptions. Click on the links for further details.
Close | Closes the current archive. |
Config | Sets or retrieves a configuration setting. |
DoAction | Performs an additional action. |
Extract | Extracts a single file from the archive. |
ExtractAll | Extract all the files contained in the archive. |
Open | Opens an archive file. |
OpenBytes | Loads an archive file from a byte array. |
OpenStream | Loads an archive file from a stream. |
Event List
The following is the full list of the events fired by the class with short descriptions. Click on the links for further details.
AfterExtractFile | Marks the completion of extraction of an archived file. |
BeforeExtractFile | Marks the start of extraction of an archived file. |
DecryptionPasswordNeeded | Requests a decryption password, when needed. |
Error | Reports information about errors during archive processing. |
Notification | This event notifies the application about an underlying control flow event. |
Progress | Reports the progress of data extraction. |
RecipientFound | Informs the application that an archive is encrypted with a digital certificate. |
SignatureFound | Signifies the start of signature validation. |
Config Settings
The following is a list of config settings for the class with short descriptions. Click on the links for further details.
Attributes | Provides access to file attributes recorded in the archive. |
OverwriteExisting | Whether the class should overwrite existing files. |
RestoreAttributes | Specifies whether the class should apply recorded attributes to the extracted files. |
TempPath | Path for storing temporary files. |
CheckKeyIntegrityBeforeUse | Enables or disable private key integrity check before use. |
CookieCaching | Specifies whether a cookie cache should be used for HTTP(S) transports. |
Cookies | Gets or sets local cookies for the class. |
DefDeriveKeyIterations | Specifies the default key derivation algorithm iteration count. |
EnableClientSideSSLFFDHE | Enables or disables finite field DHE key exchange support in TLS clients. |
GlobalCookies | Gets or sets global cookies for all the HTTP transports. |
HttpUserAgent | Specifies the user agent name to be used by all HTTP clients. |
LogDestination | Specifies the debug log destination. |
LogDetails | Specifies the debug log details to dump. |
LogFile | Specifies the debug log filename. |
LogFilters | Specifies the debug log filters. |
LogFlushMode | Specifies the log flush mode. |
LogLevel | Specifies the debug log level. |
LogMaxEventCount | Specifies the maximum number of events to cache before further action is taken. |
LogRotationMode | Specifies the log rotation mode. |
MaxASN1BufferLength | Specifies the maximal allowed length for ASN.1 primitive tag data. |
MaxASN1TreeDepth | Specifies the maximal depth for processed ASN.1 trees. |
OCSPHashAlgorithm | Specifies the hash algorithm to be used to identify certificates in OCSP requests. |
StaticDNS | Specifies whether static DNS rules should be used. |
StaticIPAddress[domain] | Gets or sets an IP address for the specified domain name. |
StaticIPAddresses | Gets or sets all the static DNS rules. |
Tag | Allows to store any custom data. |
TLSSessionGroup | Specifies the group name of TLS sessions to be used for session resumption. |
TLSSessionLifetime | Specifies lifetime in seconds of the cached TLS session. |
TLSSessionPurgeInterval | Specifies how often the session cache should remove the expired TLS sessions. |
UseOwnDNSResolver | Specifies whether the client classes should use own DNS resolver. |
UseSharedSystemStorages | Specifies whether the validation engine should use a global per-process copy of the system certificate stores. |
UseSystemOAEPAndPSS | Enforces or disables the use of system-driven RSA OAEP and PSS computations. |
UseSystemRandom | Enables or disables the use of the OS PRNG. |
ArchiveType Property (ArchiveReader Class)
The type of the archive file.
Syntax
ANSI (Cross Platform) int GetArchiveType(); Unicode (Windows) INT GetArchiveType();
Possible Values
AFT_UNKNOWN(0),
AFT_ZIP(1),
AFT_GZIP(2),
AFT_BZIP_2(3),
AFT_TAR(4),
AFT_TAR_GZIP(5),
AFT_TAR_BZIP_2(6),
AFT_SFX(7)
int secureblackbox_archivereader_getarchivetype(void* lpObj);
int GetArchiveType();
Default Value
0
Remarks
Use this property to learn about the type (format) of the opened archive.
aftUnknown (0) | It was not possible to establish the type of the archive file. |
aftZip (1) | The archive contains data in ZIP format. |
aftGzip (2) | The archive file contains data in GZIP format. |
aftBzip2 (3) | The archive contains BZIP2 data. |
aftTar (4) | The archive contains a .tar file. |
aftTarGzip (5) | The archive contains a .tar.gz file. |
aftTarBzip2 (6) | The archive contains data in .tar.bz2 format. |
This property is read-only.
Data Type
Integer
DecryptionCertCount Property (ArchiveReader Class)
The number of records in the DecryptionCert arrays.
Syntax
ANSI (Cross Platform) int GetDecryptionCertCount();
int SetDecryptionCertCount(int iDecryptionCertCount); Unicode (Windows) INT GetDecryptionCertCount();
INT SetDecryptionCertCount(INT iDecryptionCertCount);
int secureblackbox_archivereader_getdecryptioncertcount(void* lpObj);
int secureblackbox_archivereader_setdecryptioncertcount(void* lpObj, int iDecryptionCertCount);
int GetDecryptionCertCount();
int SetDecryptionCertCount(int iDecryptionCertCount);
Default Value
0
Remarks
This property controls the size of the following arrays:
The array indices start at 0 and end at DecryptionCertCount - 1.
This property is not available at design time.
Data Type
Integer
DecryptionCertBytes Property (ArchiveReader Class)
Returns the raw certificate data in DER format.
Syntax
ANSI (Cross Platform) int GetDecryptionCertBytes(int iDecryptionCertIndex, char* &lpDecryptionCertBytes, int &lenDecryptionCertBytes); Unicode (Windows) INT GetDecryptionCertBytes(INT iDecryptionCertIndex, LPSTR &lpDecryptionCertBytes, INT &lenDecryptionCertBytes);
int secureblackbox_archivereader_getdecryptioncertbytes(void* lpObj, int decryptioncertindex, char** lpDecryptionCertBytes, int* lenDecryptionCertBytes);
QByteArray GetDecryptionCertBytes(int iDecryptionCertIndex);
Remarks
Returns the raw certificate data in DER format.
The DecryptionCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the DecryptionCertCount property.
This property is read-only and not available at design time.
Data Type
Byte Array
DecryptionCertHandle Property (ArchiveReader Class)
Allows to get or set a 'handle', a unique identifier of the underlying property object.
Syntax
ANSI (Cross Platform) int64 GetDecryptionCertHandle(int iDecryptionCertIndex);
int SetDecryptionCertHandle(int iDecryptionCertIndex, int64 lDecryptionCertHandle); Unicode (Windows) LONG64 GetDecryptionCertHandle(INT iDecryptionCertIndex);
INT SetDecryptionCertHandle(INT iDecryptionCertIndex, LONG64 lDecryptionCertHandle);
int64 secureblackbox_archivereader_getdecryptioncerthandle(void* lpObj, int decryptioncertindex);
int secureblackbox_archivereader_setdecryptioncerthandle(void* lpObj, int decryptioncertindex, int64 lDecryptionCertHandle);
qint64 GetDecryptionCertHandle(int iDecryptionCertIndex);
int SetDecryptionCertHandle(int iDecryptionCertIndex, qint64 lDecryptionCertHandle);
Default Value
0
Remarks
Allows to get or set a 'handle', a unique identifier of the underlying property object. Use this property to assign objects of the same type in a quicker manner, without copying them fieldwise.
When you pass a handle of one object to another, the source object is copied to the destination rather than assigned. It is safe to get rid of the original object after such operation.
pdfSigner.setSigningCertHandle(certMgr.getCertHandle());
The DecryptionCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the DecryptionCertCount property.
This property is not available at design time.
Data Type
Long64
DecryptionPassword Property (ArchiveReader Class)
The decryption password.
Syntax
ANSI (Cross Platform) char* GetDecryptionPassword();
int SetDecryptionPassword(const char* lpszDecryptionPassword); Unicode (Windows) LPWSTR GetDecryptionPassword();
INT SetDecryptionPassword(LPCWSTR lpszDecryptionPassword);
char* secureblackbox_archivereader_getdecryptionpassword(void* lpObj);
int secureblackbox_archivereader_setdecryptionpassword(void* lpObj, const char* lpszDecryptionPassword);
QString GetDecryptionPassword();
int SetDecryptionPassword(QString qsDecryptionPassword);
Default Value
""
Remarks
Use this property to provide the decryption password for the archive.
Data Type
String
FileData Property (ArchiveReader Class)
The contents of the last extracted file.
Syntax
ANSI (Cross Platform) int GetFileData(char* &lpFileData, int &lenFileData);
int SetFileData(const char* lpFileData, int lenFileData); Unicode (Windows) INT GetFileData(LPSTR &lpFileData, INT &lenFileData);
INT SetFileData(LPCSTR lpFileData, INT lenFileData);
int secureblackbox_archivereader_getfiledata(void* lpObj, char** lpFileData, int* lenFileData);
int secureblackbox_archivereader_setfiledata(void* lpObj, const char* lpFileData, int lenFileData);
QByteArray GetFileData();
int SetFileData(QByteArray qbaFileData);
Remarks
Use this property to get the contents of the last extracted file with DataSource set to stBuffer (2).
This property is not available at design time.
Data Type
Byte Array
FileCount Property (ArchiveReader Class)
The number of records in the File arrays.
Syntax
ANSI (Cross Platform) int GetFileCount();
int SetFileCount(int iFileCount); Unicode (Windows) INT GetFileCount();
INT SetFileCount(INT iFileCount);
int secureblackbox_archivereader_getfilecount(void* lpObj);
int secureblackbox_archivereader_setfilecount(void* lpObj, int iFileCount);
int GetFileCount();
int SetFileCount(int iFileCount);
Default Value
0
Remarks
This property controls the size of the following arrays:
- FileAction
- FileCompressedSize
- FileDataSource
- FileDirectory
- FileEncryptionAlgorithm
- FileEncryptionKeyLength
- FileEncryptionType
- FileFileName
- FileFolder
- FileLocalPath
- FileMTime
- FileNewFile
- FilePath
- FileSignatureCount
- FileSigned
- FileSize
The array indices start at 0 and end at FileCount - 1.
This property is not available at design time.
Data Type
Integer
FileAction Property (ArchiveReader Class)
The action to apply to the file.
Syntax
ANSI (Cross Platform) int GetFileAction(int iFileIndex);
int SetFileAction(int iFileIndex, int iFileAction); Unicode (Windows) INT GetFileAction(INT iFileIndex);
INT SetFileAction(INT iFileIndex, INT iFileAction);
Possible Values
AT_ADD(0),
AT_KEEP(1),
AT_UPDATE(2),
AT_DELETE(3),
AT_EXTRACT(4),
AT_SKIP(5)
int secureblackbox_archivereader_getfileaction(void* lpObj, int fileindex);
int secureblackbox_archivereader_setfileaction(void* lpObj, int fileindex, int iFileAction);
int GetFileAction(int iFileIndex);
int SetFileAction(int iFileIndex, int iFileAction);
Default Value
0
Remarks
The action to apply to the file.
Use this property to control the action that should be applied to the file during the compression or extraction. The following actions are supported:
atAdd (0) | Add the file to the archive |
atKeep (1) | Keep the existing file in the archive |
atUpdate (2) | Update the archived file with a fresher copy |
atDelete (3) | Delete the file from the archive |
atExtract (4) | Extract the file (extraction only) |
atSkip (5) | Skip file extraction (extraction only) |
The FileIndex parameter specifies the index of the item in the array. The size of the array is controlled by the FileCount property.
This property is not available at design time.
Data Type
Integer
FileCompressedSize Property (ArchiveReader Class)
The size of the file after compression.
Syntax
ANSI (Cross Platform) int64 GetFileCompressedSize(int iFileIndex); Unicode (Windows) LONG64 GetFileCompressedSize(INT iFileIndex);
int64 secureblackbox_archivereader_getfilecompressedsize(void* lpObj, int fileindex);
qint64 GetFileCompressedSize(int iFileIndex);
Default Value
0
Remarks
The size of the file after compression.
The FileIndex parameter specifies the index of the item in the array. The size of the array is controlled by the FileCount property.
This property is read-only and not available at design time.
Data Type
Long64
FileDataSource Property (ArchiveReader Class)
The type of the data source for this entry.
Syntax
ANSI (Cross Platform) int GetFileDataSource(int iFileIndex);
int SetFileDataSource(int iFileIndex, int iFileDataSource); Unicode (Windows) INT GetFileDataSource(INT iFileIndex);
INT SetFileDataSource(INT iFileIndex, INT iFileDataSource);
Possible Values
FDS_FILE(0),
FDS_STREAM(1),
FDS_BUFFER(2)
int secureblackbox_archivereader_getfiledatasource(void* lpObj, int fileindex);
int secureblackbox_archivereader_setfiledatasource(void* lpObj, int fileindex, int iFileDataSource);
int GetFileDataSource(int iFileIndex);
int SetFileDataSource(int iFileIndex, int iFileDataSource);
Default Value
0
Remarks
The type of the data source for this entry.
Use this property to control the data source for this entry.
fdsFile (0) | The data for this entry should be taken from the file provided via FileLocalPath. |
fdsStream (1) | The data is going to be provided on-the-fly via the FileStream property. |
fdsBuffer (2) | The data is going to be provided on-the-fly via the FileData property. |
The FileIndex parameter specifies the index of the item in the array. The size of the array is controlled by the FileCount property.
This property is not available at design time.
Data Type
Integer
FileDirectory Property (ArchiveReader Class)
Tells if the entry is a directory or a regular file.
Syntax
ANSI (Cross Platform) int GetFileDirectory(int iFileIndex); Unicode (Windows) BOOL GetFileDirectory(INT iFileIndex);
int secureblackbox_archivereader_getfiledirectory(void* lpObj, int fileindex);
bool GetFileDirectory(int iFileIndex);
Default Value
FALSE
Remarks
Tells if the entry is a directory or a regular file.
The FileIndex parameter specifies the index of the item in the array. The size of the array is controlled by the FileCount property.
This property is read-only and not available at design time.
Data Type
Boolean
FileEncryptionAlgorithm Property (ArchiveReader Class)
Returns the symmetric algorithm that was used to encrypt the file.
Syntax
ANSI (Cross Platform) char* GetFileEncryptionAlgorithm(int iFileIndex); Unicode (Windows) LPWSTR GetFileEncryptionAlgorithm(INT iFileIndex);
char* secureblackbox_archivereader_getfileencryptionalgorithm(void* lpObj, int fileindex);
QString GetFileEncryptionAlgorithm(int iFileIndex);
Default Value
""
Remarks
Returns the symmetric algorithm that was used to encrypt the file.
The FileIndex parameter specifies the index of the item in the array. The size of the array is controlled by the FileCount property.
This property is read-only and not available at design time.
Data Type
String
FileEncryptionKeyLength Property (ArchiveReader Class)
Returns the length, in bits, of the encryption key.
Syntax
ANSI (Cross Platform) int GetFileEncryptionKeyLength(int iFileIndex); Unicode (Windows) INT GetFileEncryptionKeyLength(INT iFileIndex);
int secureblackbox_archivereader_getfileencryptionkeylength(void* lpObj, int fileindex);
int GetFileEncryptionKeyLength(int iFileIndex);
Default Value
0
Remarks
Returns the length, in bits, of the encryption key.
The FileIndex parameter specifies the index of the item in the array. The size of the array is controlled by the FileCount property.
This property is read-only and not available at design time.
Data Type
Integer
FileEncryptionType Property (ArchiveReader Class)
The type of encryption applied to the file.
Syntax
ANSI (Cross Platform) int GetFileEncryptionType(int iFileIndex); Unicode (Windows) INT GetFileEncryptionType(INT iFileIndex);
Possible Values
AET_DEFAULT(0),
AET_NO_ENCRYPTION(1),
AET_GENERIC(2),
AET_WIN_ZIP(3),
AET_STRONG(4)
int secureblackbox_archivereader_getfileencryptiontype(void* lpObj, int fileindex);
int GetFileEncryptionType(int iFileIndex);
Default Value
0
Remarks
The type of encryption applied to the file.
Use this property to find out what kind of encryption was applied to the file.
aetDefault (0) | Default encryption (not used for already encrypted files) |
aetNoEncryption (1) | No encryption |
aetGeneric (2) | Standard ZIP encryption |
aetWinZip (3) | WinZIP-based encryption |
aetStrong (4) | Strong encryption |
The FileIndex parameter specifies the index of the item in the array. The size of the array is controlled by the FileCount property.
This property is read-only and not available at design time.
Data Type
Integer
FileFileName Property (ArchiveReader Class)
The original name of the compressed file or folder.
Syntax
ANSI (Cross Platform) char* GetFileFileName(int iFileIndex);
int SetFileFileName(int iFileIndex, const char* lpszFileFileName); Unicode (Windows) LPWSTR GetFileFileName(INT iFileIndex);
INT SetFileFileName(INT iFileIndex, LPCWSTR lpszFileFileName);
char* secureblackbox_archivereader_getfilefilename(void* lpObj, int fileindex);
int secureblackbox_archivereader_setfilefilename(void* lpObj, int fileindex, const char* lpszFileFileName);
QString GetFileFileName(int iFileIndex);
int SetFileFileName(int iFileIndex, QString qsFileFileName);
Default Value
""
Remarks
The original name of the compressed file or folder.
The FileIndex parameter specifies the index of the item in the array. The size of the array is controlled by the FileCount property.
This property is not available at design time.
Data Type
String
FileFolder Property (ArchiveReader Class)
The containing folder of the entry.
Syntax
ANSI (Cross Platform) char* GetFileFolder(int iFileIndex); Unicode (Windows) LPWSTR GetFileFolder(INT iFileIndex);
char* secureblackbox_archivereader_getfilefolder(void* lpObj, int fileindex);
QString GetFileFolder(int iFileIndex);
Default Value
""
Remarks
The containing folder of the entry.
The FileIndex parameter specifies the index of the item in the array. The size of the array is controlled by the FileCount property.
This property is read-only and not available at design time.
Data Type
String
FileLocalPath Property (ArchiveReader Class)
The local path associated with this entry.
Syntax
ANSI (Cross Platform) char* GetFileLocalPath(int iFileIndex);
int SetFileLocalPath(int iFileIndex, const char* lpszFileLocalPath); Unicode (Windows) LPWSTR GetFileLocalPath(INT iFileIndex);
INT SetFileLocalPath(INT iFileIndex, LPCWSTR lpszFileLocalPath);
char* secureblackbox_archivereader_getfilelocalpath(void* lpObj, int fileindex);
int secureblackbox_archivereader_setfilelocalpath(void* lpObj, int fileindex, const char* lpszFileLocalPath);
QString GetFileLocalPath(int iFileIndex);
int SetFileLocalPath(int iFileIndex, QString qsFileLocalPath);
Default Value
""
Remarks
The local path associated with this entry. It typically specifies the source path that the data should be taken from, or the destination it should be extracted to.
The FileIndex parameter specifies the index of the item in the array. The size of the array is controlled by the FileCount property.
This property is not available at design time.
Data Type
String
FileMTime Property (ArchiveReader Class)
The entry's last modification time.
Syntax
ANSI (Cross Platform) char* GetFileMTime(int iFileIndex);
int SetFileMTime(int iFileIndex, const char* lpszFileMTime); Unicode (Windows) LPWSTR GetFileMTime(INT iFileIndex);
INT SetFileMTime(INT iFileIndex, LPCWSTR lpszFileMTime);
char* secureblackbox_archivereader_getfilemtime(void* lpObj, int fileindex);
int secureblackbox_archivereader_setfilemtime(void* lpObj, int fileindex, const char* lpszFileMTime);
QString GetFileMTime(int iFileIndex);
int SetFileMTime(int iFileIndex, QString qsFileMTime);
Default Value
""
Remarks
The entry's last modification time.
The FileIndex parameter specifies the index of the item in the array. The size of the array is controlled by the FileCount property.
This property is not available at design time.
Data Type
String
FileNewFile Property (ArchiveReader Class)
Indicates whether the entry corresponds to a file to be added to the archive.
Syntax
ANSI (Cross Platform) int GetFileNewFile(int iFileIndex); Unicode (Windows) BOOL GetFileNewFile(INT iFileIndex);
int secureblackbox_archivereader_getfilenewfile(void* lpObj, int fileindex);
bool GetFileNewFile(int iFileIndex);
Default Value
FALSE
Remarks
Indicates whether the entry corresponds to a file to be added to the archive.
The FileIndex parameter specifies the index of the item in the array. The size of the array is controlled by the FileCount property.
This property is read-only and not available at design time.
Data Type
Boolean
FilePath Property (ArchiveReader Class)
The full internal path of the archived entry.
Syntax
ANSI (Cross Platform) char* GetFilePath(int iFileIndex); Unicode (Windows) LPWSTR GetFilePath(INT iFileIndex);
char* secureblackbox_archivereader_getfilepath(void* lpObj, int fileindex);
QString GetFilePath(int iFileIndex);
Default Value
""
Remarks
The full internal path of the archived entry.
The FileIndex parameter specifies the index of the item in the array. The size of the array is controlled by the FileCount property.
This property is read-only and not available at design time.
Data Type
String
FileSignatureCount Property (ArchiveReader Class)
The number of signatures covering the entry.
Syntax
ANSI (Cross Platform) int GetFileSignatureCount(int iFileIndex); Unicode (Windows) INT GetFileSignatureCount(INT iFileIndex);
int secureblackbox_archivereader_getfilesignaturecount(void* lpObj, int fileindex);
int GetFileSignatureCount(int iFileIndex);
Default Value
0
Remarks
The number of signatures covering the entry.
The FileIndex parameter specifies the index of the item in the array. The size of the array is controlled by the FileCount property.
This property is read-only and not available at design time.
Data Type
Integer
FileSigned Property (ArchiveReader Class)
Indicates whether the entry is signed.
Syntax
ANSI (Cross Platform) int GetFileSigned(int iFileIndex); Unicode (Windows) BOOL GetFileSigned(INT iFileIndex);
int secureblackbox_archivereader_getfilesigned(void* lpObj, int fileindex);
bool GetFileSigned(int iFileIndex);
Default Value
FALSE
Remarks
Indicates whether the entry is signed.
The FileIndex parameter specifies the index of the item in the array. The size of the array is controlled by the FileCount property.
This property is read-only and not available at design time.
Data Type
Boolean
FileSize Property (ArchiveReader Class)
The size of the file before compression.
Syntax
ANSI (Cross Platform) int64 GetFileSize(int iFileIndex); Unicode (Windows) LONG64 GetFileSize(INT iFileIndex);
int64 secureblackbox_archivereader_getfilesize(void* lpObj, int fileindex);
qint64 GetFileSize(int iFileIndex);
Default Value
0
Remarks
The size of the file before compression.
The FileIndex parameter specifies the index of the item in the array. The size of the array is controlled by the FileCount property.
This property is read-only and not available at design time.
Data Type
Long64
FIPSMode Property (ArchiveReader Class)
Reserved.
Syntax
ANSI (Cross Platform) int GetFIPSMode();
int SetFIPSMode(int bFIPSMode); Unicode (Windows) BOOL GetFIPSMode();
INT SetFIPSMode(BOOL bFIPSMode);
int secureblackbox_archivereader_getfipsmode(void* lpObj);
int secureblackbox_archivereader_setfipsmode(void* lpObj, int bFIPSMode);
bool GetFIPSMode();
int SetFIPSMode(bool bFIPSMode);
Default Value
FALSE
Remarks
This property is reserved for future use.
Data Type
Boolean
HashAlgorithm Property (ArchiveReader Class)
Returns the hash algorithm that was used to generate the signature.
Syntax
ANSI (Cross Platform) char* GetHashAlgorithm(); Unicode (Windows) LPWSTR GetHashAlgorithm();
char* secureblackbox_archivereader_gethashalgorithm(void* lpObj);
QString GetHashAlgorithm();
Default Value
""
Remarks
Check this property after calling Extract to get the hash algorithm which was used to calculate the signature.
SB_HASH_ALGORITHM_SHA1 | SHA1 | |
SB_HASH_ALGORITHM_SHA224 | SHA224 | |
SB_HASH_ALGORITHM_SHA256 | SHA256 | |
SB_HASH_ALGORITHM_SHA384 | SHA384 | |
SB_HASH_ALGORITHM_SHA512 | SHA512 | |
SB_HASH_ALGORITHM_MD2 | MD2 | |
SB_HASH_ALGORITHM_MD4 | MD4 | |
SB_HASH_ALGORITHM_MD5 | MD5 | |
SB_HASH_ALGORITHM_RIPEMD160 | RIPEMD160 | |
SB_HASH_ALGORITHM_CRC32 | CRC32 | |
SB_HASH_ALGORITHM_SSL3 | SSL3 | |
SB_HASH_ALGORITHM_GOST_R3411_1994 | GOST1994 | |
SB_HASH_ALGORITHM_WHIRLPOOL | WHIRLPOOL | |
SB_HASH_ALGORITHM_POLY1305 | POLY1305 | |
SB_HASH_ALGORITHM_SHA3_224 | SHA3_224 | |
SB_HASH_ALGORITHM_SHA3_256 | SHA3_256 | |
SB_HASH_ALGORITHM_SHA3_384 | SHA3_384 | |
SB_HASH_ALGORITHM_SHA3_512 | SHA3_512 | |
SB_HASH_ALGORITHM_BLAKE2S_128 | BLAKE2S_128 | |
SB_HASH_ALGORITHM_BLAKE2S_160 | BLAKE2S_160 | |
SB_HASH_ALGORITHM_BLAKE2S_224 | BLAKE2S_224 | |
SB_HASH_ALGORITHM_BLAKE2S_256 | BLAKE2S_256 | |
SB_HASH_ALGORITHM_BLAKE2B_160 | BLAKE2B_160 | |
SB_HASH_ALGORITHM_BLAKE2B_256 | BLAKE2B_256 | |
SB_HASH_ALGORITHM_BLAKE2B_384 | BLAKE2B_384 | |
SB_HASH_ALGORITHM_BLAKE2B_512 | BLAKE2B_512 | |
SB_HASH_ALGORITHM_SHAKE_128 | SHAKE_128 | |
SB_HASH_ALGORITHM_SHAKE_256 | SHAKE_256 | |
SB_HASH_ALGORITHM_SHAKE_128_LEN | SHAKE_128_LEN | |
SB_HASH_ALGORITHM_SHAKE_256_LEN | SHAKE_256_LEN |
This property is read-only and not available at design time.
Data Type
String
KnownCertCount Property (ArchiveReader Class)
The number of records in the KnownCert arrays.
Syntax
ANSI (Cross Platform) int GetKnownCertCount();
int SetKnownCertCount(int iKnownCertCount); Unicode (Windows) INT GetKnownCertCount();
INT SetKnownCertCount(INT iKnownCertCount);
int secureblackbox_archivereader_getknowncertcount(void* lpObj);
int secureblackbox_archivereader_setknowncertcount(void* lpObj, int iKnownCertCount);
int GetKnownCertCount();
int SetKnownCertCount(int iKnownCertCount);
Default Value
0
Remarks
This property controls the size of the following arrays:
The array indices start at 0 and end at KnownCertCount - 1.
This property is not available at design time.
Data Type
Integer
KnownCertBytes Property (ArchiveReader Class)
Returns the raw certificate data in DER format.
Syntax
ANSI (Cross Platform) int GetKnownCertBytes(int iKnownCertIndex, char* &lpKnownCertBytes, int &lenKnownCertBytes); Unicode (Windows) INT GetKnownCertBytes(INT iKnownCertIndex, LPSTR &lpKnownCertBytes, INT &lenKnownCertBytes);
int secureblackbox_archivereader_getknowncertbytes(void* lpObj, int knowncertindex, char** lpKnownCertBytes, int* lenKnownCertBytes);
QByteArray GetKnownCertBytes(int iKnownCertIndex);
Remarks
Returns the raw certificate data in DER format.
The KnownCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the KnownCertCount property.
This property is read-only and not available at design time.
Data Type
Byte Array
KnownCertHandle Property (ArchiveReader Class)
Allows to get or set a 'handle', a unique identifier of the underlying property object.
Syntax
ANSI (Cross Platform) int64 GetKnownCertHandle(int iKnownCertIndex);
int SetKnownCertHandle(int iKnownCertIndex, int64 lKnownCertHandle); Unicode (Windows) LONG64 GetKnownCertHandle(INT iKnownCertIndex);
INT SetKnownCertHandle(INT iKnownCertIndex, LONG64 lKnownCertHandle);
int64 secureblackbox_archivereader_getknowncerthandle(void* lpObj, int knowncertindex);
int secureblackbox_archivereader_setknowncerthandle(void* lpObj, int knowncertindex, int64 lKnownCertHandle);
qint64 GetKnownCertHandle(int iKnownCertIndex);
int SetKnownCertHandle(int iKnownCertIndex, qint64 lKnownCertHandle);
Default Value
0
Remarks
Allows to get or set a 'handle', a unique identifier of the underlying property object. Use this property to assign objects of the same type in a quicker manner, without copying them fieldwise.
When you pass a handle of one object to another, the source object is copied to the destination rather than assigned. It is safe to get rid of the original object after such operation.
pdfSigner.setSigningCertHandle(certMgr.getCertHandle());
The KnownCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the KnownCertCount property.
This property is not available at design time.
Data Type
Long64
Opened Property (ArchiveReader Class)
Indicates if the class is in the open state.
Syntax
ANSI (Cross Platform) int GetOpened(); Unicode (Windows) BOOL GetOpened();
int secureblackbox_archivereader_getopened(void* lpObj);
bool GetOpened();
Default Value
FALSE
Remarks
Use this property to check if the component provides access to an open archive file.
This property is read-only.
Data Type
Boolean
SignatureValidationResult Property (ArchiveReader Class)
The signature validation result.
Syntax
ANSI (Cross Platform) int GetSignatureValidationResult(); Unicode (Windows) INT GetSignatureValidationResult();
Possible Values
SVT_VALID(0),
SVT_UNKNOWN(1),
SVT_CORRUPTED(2),
SVT_SIGNER_NOT_FOUND(3),
SVT_FAILURE(4)
int secureblackbox_archivereader_getsignaturevalidationresult(void* lpObj);
int GetSignatureValidationResult();
Default Value
0
Remarks
Use this property to check the result of the most recent signature validation.
svtValid | 0 | The signature is valid |
svtUnknown | 1 | Signature validity is unknown |
svtCorrupted | 2 | The signature is corrupted |
svtSignerNotFound | 3 | Failed to acquire the signing certificate. The signature cannot be validated. |
svtFailure | 4 | General failure |
This property is read-only and not available at design time.
Data Type
Integer
SigningCertBytes Property (ArchiveReader Class)
Returns the raw certificate data in DER format.
Syntax
ANSI (Cross Platform) int GetSigningCertBytes(char* &lpSigningCertBytes, int &lenSigningCertBytes); Unicode (Windows) INT GetSigningCertBytes(LPSTR &lpSigningCertBytes, INT &lenSigningCertBytes);
int secureblackbox_archivereader_getsigningcertbytes(void* lpObj, char** lpSigningCertBytes, int* lenSigningCertBytes);
QByteArray GetSigningCertBytes();
Remarks
Returns the raw certificate data in DER format.
This property is read-only and not available at design time.
Data Type
Byte Array
SigningCertCA Property (ArchiveReader Class)
Indicates whether the certificate has a CA capability (a setting in the BasicConstraints extension).
Syntax
ANSI (Cross Platform) int GetSigningCertCA(); Unicode (Windows) BOOL GetSigningCertCA();
int secureblackbox_archivereader_getsigningcertca(void* lpObj);
bool GetSigningCertCA();
Default Value
FALSE
Remarks
Indicates whether the certificate has a CA capability (a setting in the BasicConstraints extension).
This property is read-only and not available at design time.
Data Type
Boolean
SigningCertCAKeyID Property (ArchiveReader Class)
A unique identifier (fingerprint) of the CA certificate's private key.
Syntax
ANSI (Cross Platform) int GetSigningCertCAKeyID(char* &lpSigningCertCAKeyID, int &lenSigningCertCAKeyID); Unicode (Windows) INT GetSigningCertCAKeyID(LPSTR &lpSigningCertCAKeyID, INT &lenSigningCertCAKeyID);
int secureblackbox_archivereader_getsigningcertcakeyid(void* lpObj, char** lpSigningCertCAKeyID, int* lenSigningCertCAKeyID);
QByteArray GetSigningCertCAKeyID();
Remarks
A unique identifier (fingerprint) of the CA certificate's private key.
Authority Key Identifier is a (non-critical) X.509 certificate extension which allows the identification of certificates produced by the same issuer, but with different public keys.
This property is read-only and not available at design time.
Data Type
Byte Array
SigningCertCRLDistributionPoints Property (ArchiveReader Class)
Locations of the CRL (Certificate Revocation List) distribution points used to check this certificate's validity.
Syntax
ANSI (Cross Platform) char* GetSigningCertCRLDistributionPoints(); Unicode (Windows) LPWSTR GetSigningCertCRLDistributionPoints();
char* secureblackbox_archivereader_getsigningcertcrldistributionpoints(void* lpObj);
QString GetSigningCertCRLDistributionPoints();
Default Value
""
Remarks
Locations of the CRL (Certificate Revocation List) distribution points used to check this certificate's validity.
This property is read-only and not available at design time.
Data Type
String
SigningCertCurve Property (ArchiveReader Class)
Specifies the elliptic curve of the EC public key.
Syntax
ANSI (Cross Platform) char* GetSigningCertCurve(); Unicode (Windows) LPWSTR GetSigningCertCurve();
char* secureblackbox_archivereader_getsigningcertcurve(void* lpObj);
QString GetSigningCertCurve();
Default Value
""
Remarks
Specifies the elliptic curve of the EC public key.
SB_EC_SECP112R1 | SECP112R1 | |
SB_EC_SECP112R2 | SECP112R2 | |
SB_EC_SECP128R1 | SECP128R1 | |
SB_EC_SECP128R2 | SECP128R2 | |
SB_EC_SECP160K1 | SECP160K1 | |
SB_EC_SECP160R1 | SECP160R1 | |
SB_EC_SECP160R2 | SECP160R2 | |
SB_EC_SECP192K1 | SECP192K1 | |
SB_EC_SECP192R1 | SECP192R1 | |
SB_EC_SECP224K1 | SECP224K1 | |
SB_EC_SECP224R1 | SECP224R1 | |
SB_EC_SECP256K1 | SECP256K1 | |
SB_EC_SECP256R1 | SECP256R1 | |
SB_EC_SECP384R1 | SECP384R1 | |
SB_EC_SECP521R1 | SECP521R1 | |
SB_EC_SECT113R1 | SECT113R1 | |
SB_EC_SECT113R2 | SECT113R2 | |
SB_EC_SECT131R1 | SECT131R1 | |
SB_EC_SECT131R2 | SECT131R2 | |
SB_EC_SECT163K1 | SECT163K1 | |
SB_EC_SECT163R1 | SECT163R1 | |
SB_EC_SECT163R2 | SECT163R2 | |
SB_EC_SECT193R1 | SECT193R1 | |
SB_EC_SECT193R2 | SECT193R2 | |
SB_EC_SECT233K1 | SECT233K1 | |
SB_EC_SECT233R1 | SECT233R1 | |
SB_EC_SECT239K1 | SECT239K1 | |
SB_EC_SECT283K1 | SECT283K1 | |
SB_EC_SECT283R1 | SECT283R1 | |
SB_EC_SECT409K1 | SECT409K1 | |
SB_EC_SECT409R1 | SECT409R1 | |
SB_EC_SECT571K1 | SECT571K1 | |
SB_EC_SECT571R1 | SECT571R1 | |
SB_EC_PRIME192V1 | PRIME192V1 | |
SB_EC_PRIME192V2 | PRIME192V2 | |
SB_EC_PRIME192V3 | PRIME192V3 | |
SB_EC_PRIME239V1 | PRIME239V1 | |
SB_EC_PRIME239V2 | PRIME239V2 | |
SB_EC_PRIME239V3 | PRIME239V3 | |
SB_EC_PRIME256V1 | PRIME256V1 | |
SB_EC_C2PNB163V1 | C2PNB163V1 | |
SB_EC_C2PNB163V2 | C2PNB163V2 | |
SB_EC_C2PNB163V3 | C2PNB163V3 | |
SB_EC_C2PNB176W1 | C2PNB176W1 | |
SB_EC_C2TNB191V1 | C2TNB191V1 | |
SB_EC_C2TNB191V2 | C2TNB191V2 | |
SB_EC_C2TNB191V3 | C2TNB191V3 | |
SB_EC_C2ONB191V4 | C2ONB191V4 | |
SB_EC_C2ONB191V5 | C2ONB191V5 | |
SB_EC_C2PNB208W1 | C2PNB208W1 | |
SB_EC_C2TNB239V1 | C2TNB239V1 | |
SB_EC_C2TNB239V2 | C2TNB239V2 | |
SB_EC_C2TNB239V3 | C2TNB239V3 | |
SB_EC_C2ONB239V4 | C2ONB239V4 | |
SB_EC_C2ONB239V5 | C2ONB239V5 | |
SB_EC_C2PNB272W1 | C2PNB272W1 | |
SB_EC_C2PNB304W1 | C2PNB304W1 | |
SB_EC_C2TNB359V1 | C2TNB359V1 | |
SB_EC_C2PNB368W1 | C2PNB368W1 | |
SB_EC_C2TNB431R1 | C2TNB431R1 | |
SB_EC_NISTP192 | NISTP192 | |
SB_EC_NISTP224 | NISTP224 | |
SB_EC_NISTP256 | NISTP256 | |
SB_EC_NISTP384 | NISTP384 | |
SB_EC_NISTP521 | NISTP521 | |
SB_EC_NISTB163 | NISTB163 | |
SB_EC_NISTB233 | NISTB233 | |
SB_EC_NISTB283 | NISTB283 | |
SB_EC_NISTB409 | NISTB409 | |
SB_EC_NISTB571 | NISTB571 | |
SB_EC_NISTK163 | NISTK163 | |
SB_EC_NISTK233 | NISTK233 | |
SB_EC_NISTK283 | NISTK283 | |
SB_EC_NISTK409 | NISTK409 | |
SB_EC_NISTK571 | NISTK571 | |
SB_EC_GOSTCPTEST | GOSTCPTEST | |
SB_EC_GOSTCPA | GOSTCPA | |
SB_EC_GOSTCPB | GOSTCPB | |
SB_EC_GOSTCPC | GOSTCPC | |
SB_EC_GOSTCPXCHA | GOSTCPXCHA | |
SB_EC_GOSTCPXCHB | GOSTCPXCHB | |
SB_EC_BRAINPOOLP160R1 | BRAINPOOLP160R1 | |
SB_EC_BRAINPOOLP160T1 | BRAINPOOLP160T1 | |
SB_EC_BRAINPOOLP192R1 | BRAINPOOLP192R1 | |
SB_EC_BRAINPOOLP192T1 | BRAINPOOLP192T1 | |
SB_EC_BRAINPOOLP224R1 | BRAINPOOLP224R1 | |
SB_EC_BRAINPOOLP224T1 | BRAINPOOLP224T1 | |
SB_EC_BRAINPOOLP256R1 | BRAINPOOLP256R1 | |
SB_EC_BRAINPOOLP256T1 | BRAINPOOLP256T1 | |
SB_EC_BRAINPOOLP320R1 | BRAINPOOLP320R1 | |
SB_EC_BRAINPOOLP320T1 | BRAINPOOLP320T1 | |
SB_EC_BRAINPOOLP384R1 | BRAINPOOLP384R1 | |
SB_EC_BRAINPOOLP384T1 | BRAINPOOLP384T1 | |
SB_EC_BRAINPOOLP512R1 | BRAINPOOLP512R1 | |
SB_EC_BRAINPOOLP512T1 | BRAINPOOLP512T1 | |
SB_EC_CURVE25519 | CURVE25519 | |
SB_EC_CURVE448 | CURVE448 |
This property is read-only and not available at design time.
Data Type
String
SigningCertFingerprint Property (ArchiveReader Class)
Contains the fingerprint (a hash imprint) of this certificate.
Syntax
ANSI (Cross Platform) int GetSigningCertFingerprint(char* &lpSigningCertFingerprint, int &lenSigningCertFingerprint); Unicode (Windows) INT GetSigningCertFingerprint(LPSTR &lpSigningCertFingerprint, INT &lenSigningCertFingerprint);
int secureblackbox_archivereader_getsigningcertfingerprint(void* lpObj, char** lpSigningCertFingerprint, int* lenSigningCertFingerprint);
QByteArray GetSigningCertFingerprint();
Remarks
Contains the fingerprint (a hash imprint) of this certificate.
This property is read-only and not available at design time.
Data Type
Byte Array
SigningCertFriendlyName Property (ArchiveReader Class)
Contains an associated alias (friendly name) of the certificate.
Syntax
ANSI (Cross Platform) char* GetSigningCertFriendlyName(); Unicode (Windows) LPWSTR GetSigningCertFriendlyName();
char* secureblackbox_archivereader_getsigningcertfriendlyname(void* lpObj);
QString GetSigningCertFriendlyName();
Default Value
""
Remarks
Contains an associated alias (friendly name) of the certificate.
This property is read-only and not available at design time.
Data Type
String
SigningCertHandle Property (ArchiveReader Class)
Allows to get or set a 'handle', a unique identifier of the underlying property object.
Syntax
ANSI (Cross Platform) int64 GetSigningCertHandle(); Unicode (Windows) LONG64 GetSigningCertHandle();
int64 secureblackbox_archivereader_getsigningcerthandle(void* lpObj);
qint64 GetSigningCertHandle();
Default Value
0
Remarks
Allows to get or set a 'handle', a unique identifier of the underlying property object. Use this property to assign objects of the same type in a quicker manner, without copying them fieldwise.
When you pass a handle of one object to another, the source object is copied to the destination rather than assigned. It is safe to get rid of the original object after such operation.
pdfSigner.setSigningCertHandle(certMgr.getCertHandle());
This property is read-only and not available at design time.
Data Type
Long64
SigningCertHashAlgorithm Property (ArchiveReader Class)
Specifies the hash algorithm to be used in the operations on the certificate (such as key signing) SB_HASH_ALGORITHM_SHA1 SHA1 SB_HASH_ALGORITHM_SHA224 SHA224 SB_HASH_ALGORITHM_SHA256 SHA256 SB_HASH_ALGORITHM_SHA384 SHA384 SB_HASH_ALGORITHM_SHA512 SHA512 SB_HASH_ALGORITHM_MD2 MD2 SB_HASH_ALGORITHM_MD4 MD4 SB_HASH_ALGORITHM_MD5 MD5 SB_HASH_ALGORITHM_RIPEMD160 RIPEMD160 SB_HASH_ALGORITHM_CRC32 CRC32 SB_HASH_ALGORITHM_SSL3 SSL3 SB_HASH_ALGORITHM_GOST_R3411_1994 GOST1994 SB_HASH_ALGORITHM_WHIRLPOOL WHIRLPOOL SB_HASH_ALGORITHM_POLY1305 POLY1305 SB_HASH_ALGORITHM_SHA3_224 SHA3_224 SB_HASH_ALGORITHM_SHA3_256 SHA3_256 SB_HASH_ALGORITHM_SHA3_384 SHA3_384 SB_HASH_ALGORITHM_SHA3_512 SHA3_512 SB_HASH_ALGORITHM_BLAKE2S_128 BLAKE2S_128 SB_HASH_ALGORITHM_BLAKE2S_160 BLAKE2S_160 SB_HASH_ALGORITHM_BLAKE2S_224 BLAKE2S_224 SB_HASH_ALGORITHM_BLAKE2S_256 BLAKE2S_256 SB_HASH_ALGORITHM_BLAKE2B_160 BLAKE2B_160 SB_HASH_ALGORITHM_BLAKE2B_256 BLAKE2B_256 SB_HASH_ALGORITHM_BLAKE2B_384 BLAKE2B_384 SB_HASH_ALGORITHM_BLAKE2B_512 BLAKE2B_512 SB_HASH_ALGORITHM_SHAKE_128 SHAKE_128 SB_HASH_ALGORITHM_SHAKE_256 SHAKE_256 SB_HASH_ALGORITHM_SHAKE_128_LEN SHAKE_128_LEN SB_HASH_ALGORITHM_SHAKE_256_LEN SHAKE_256_LEN .
Syntax
ANSI (Cross Platform) char* GetSigningCertHashAlgorithm(); Unicode (Windows) LPWSTR GetSigningCertHashAlgorithm();
char* secureblackbox_archivereader_getsigningcerthashalgorithm(void* lpObj);
QString GetSigningCertHashAlgorithm();
Default Value
""
Remarks
Specifies the hash algorithm to be used in the operations on the certificate (such as key signing)
SB_HASH_ALGORITHM_SHA1 | SHA1 | |
SB_HASH_ALGORITHM_SHA224 | SHA224 | |
SB_HASH_ALGORITHM_SHA256 | SHA256 | |
SB_HASH_ALGORITHM_SHA384 | SHA384 | |
SB_HASH_ALGORITHM_SHA512 | SHA512 | |
SB_HASH_ALGORITHM_MD2 | MD2 | |
SB_HASH_ALGORITHM_MD4 | MD4 | |
SB_HASH_ALGORITHM_MD5 | MD5 | |
SB_HASH_ALGORITHM_RIPEMD160 | RIPEMD160 | |
SB_HASH_ALGORITHM_CRC32 | CRC32 | |
SB_HASH_ALGORITHM_SSL3 | SSL3 | |
SB_HASH_ALGORITHM_GOST_R3411_1994 | GOST1994 | |
SB_HASH_ALGORITHM_WHIRLPOOL | WHIRLPOOL | |
SB_HASH_ALGORITHM_POLY1305 | POLY1305 | |
SB_HASH_ALGORITHM_SHA3_224 | SHA3_224 | |
SB_HASH_ALGORITHM_SHA3_256 | SHA3_256 | |
SB_HASH_ALGORITHM_SHA3_384 | SHA3_384 | |
SB_HASH_ALGORITHM_SHA3_512 | SHA3_512 | |
SB_HASH_ALGORITHM_BLAKE2S_128 | BLAKE2S_128 | |
SB_HASH_ALGORITHM_BLAKE2S_160 | BLAKE2S_160 | |
SB_HASH_ALGORITHM_BLAKE2S_224 | BLAKE2S_224 | |
SB_HASH_ALGORITHM_BLAKE2S_256 | BLAKE2S_256 | |
SB_HASH_ALGORITHM_BLAKE2B_160 | BLAKE2B_160 | |
SB_HASH_ALGORITHM_BLAKE2B_256 | BLAKE2B_256 | |
SB_HASH_ALGORITHM_BLAKE2B_384 | BLAKE2B_384 | |
SB_HASH_ALGORITHM_BLAKE2B_512 | BLAKE2B_512 | |
SB_HASH_ALGORITHM_SHAKE_128 | SHAKE_128 | |
SB_HASH_ALGORITHM_SHAKE_256 | SHAKE_256 | |
SB_HASH_ALGORITHM_SHAKE_128_LEN | SHAKE_128_LEN | |
SB_HASH_ALGORITHM_SHAKE_256_LEN | SHAKE_256_LEN |
This property is read-only and not available at design time.
Data Type
String
SigningCertIssuer Property (ArchiveReader Class)
The common name of the certificate issuer (CA), typically a company name.
Syntax
ANSI (Cross Platform) char* GetSigningCertIssuer(); Unicode (Windows) LPWSTR GetSigningCertIssuer();
char* secureblackbox_archivereader_getsigningcertissuer(void* lpObj);
QString GetSigningCertIssuer();
Default Value
""
Remarks
The common name of the certificate issuer (CA), typically a company name.
This property is read-only and not available at design time.
Data Type
String
SigningCertIssuerRDN Property (ArchiveReader Class)
A collection of information, in the form of [OID, Value] pairs, uniquely identifying the certificate issuer.
Syntax
ANSI (Cross Platform) char* GetSigningCertIssuerRDN(); Unicode (Windows) LPWSTR GetSigningCertIssuerRDN();
char* secureblackbox_archivereader_getsigningcertissuerrdn(void* lpObj);
QString GetSigningCertIssuerRDN();
Default Value
""
Remarks
A collection of information, in the form of [OID, Value] pairs, uniquely identifying the certificate issuer.
This property is read-only and not available at design time.
Data Type
String
SigningCertKeyAlgorithm Property (ArchiveReader Class)
Specifies the public key algorithm of this certificate.
Syntax
ANSI (Cross Platform) char* GetSigningCertKeyAlgorithm(); Unicode (Windows) LPWSTR GetSigningCertKeyAlgorithm();
char* secureblackbox_archivereader_getsigningcertkeyalgorithm(void* lpObj);
QString GetSigningCertKeyAlgorithm();
Default Value
"0"
Remarks
Specifies the public key algorithm of this certificate.
SB_CERT_ALGORITHM_ID_RSA_ENCRYPTION | rsaEncryption | |
SB_CERT_ALGORITHM_MD2_RSA_ENCRYPTION | md2withRSAEncryption | |
SB_CERT_ALGORITHM_MD5_RSA_ENCRYPTION | md5withRSAEncryption | |
SB_CERT_ALGORITHM_SHA1_RSA_ENCRYPTION | sha1withRSAEncryption | |
SB_CERT_ALGORITHM_ID_DSA | id-dsa | |
SB_CERT_ALGORITHM_ID_DSA_SHA1 | id-dsa-with-sha1 | |
SB_CERT_ALGORITHM_DH_PUBLIC | dhpublicnumber | |
SB_CERT_ALGORITHM_SHA224_RSA_ENCRYPTION | sha224WithRSAEncryption | |
SB_CERT_ALGORITHM_SHA256_RSA_ENCRYPTION | sha256WithRSAEncryption | |
SB_CERT_ALGORITHM_SHA384_RSA_ENCRYPTION | sha384WithRSAEncryption | |
SB_CERT_ALGORITHM_SHA512_RSA_ENCRYPTION | sha512WithRSAEncryption | |
SB_CERT_ALGORITHM_ID_RSAPSS | id-RSASSA-PSS | |
SB_CERT_ALGORITHM_ID_RSAOAEP | id-RSAES-OAEP | |
SB_CERT_ALGORITHM_RSASIGNATURE_RIPEMD160 | ripemd160withRSA | |
SB_CERT_ALGORITHM_ID_ELGAMAL | elGamal | |
SB_CERT_ALGORITHM_SHA1_ECDSA | ecdsa-with-SHA1 | |
SB_CERT_ALGORITHM_RECOMMENDED_ECDSA | ecdsa-recommended | |
SB_CERT_ALGORITHM_SHA224_ECDSA | ecdsa-with-SHA224 | |
SB_CERT_ALGORITHM_SHA256_ECDSA | ecdsa-with-SHA256 | |
SB_CERT_ALGORITHM_SHA384_ECDSA | ecdsa-with-SHA384 | |
SB_CERT_ALGORITHM_SHA512_ECDSA | ecdsa-with-SHA512 | |
SB_CERT_ALGORITHM_EC | id-ecPublicKey | |
SB_CERT_ALGORITHM_SPECIFIED_ECDSA | ecdsa-specified | |
SB_CERT_ALGORITHM_GOST_R3410_1994 | id-GostR3410-94 | |
SB_CERT_ALGORITHM_GOST_R3410_2001 | id-GostR3410-2001 | |
SB_CERT_ALGORITHM_GOST_R3411_WITH_R3410_1994 | id-GostR3411-94-with-GostR3410-94 | |
SB_CERT_ALGORITHM_GOST_R3411_WITH_R3410_2001 | id-GostR3411-94-with-GostR3410-2001 | |
SB_CERT_ALGORITHM_SHA1_ECDSA_PLAIN | ecdsa-plain-SHA1 | |
SB_CERT_ALGORITHM_SHA224_ECDSA_PLAIN | ecdsa-plain-SHA224 | |
SB_CERT_ALGORITHM_SHA256_ECDSA_PLAIN | ecdsa-plain-SHA256 | |
SB_CERT_ALGORITHM_SHA384_ECDSA_PLAIN | ecdsa-plain-SHA384 | |
SB_CERT_ALGORITHM_SHA512_ECDSA_PLAIN | ecdsa-plain-SHA512 | |
SB_CERT_ALGORITHM_RIPEMD160_ECDSA_PLAIN | ecdsa-plain-RIPEMD160 | |
SB_CERT_ALGORITHM_WHIRLPOOL_RSA_ENCRYPTION | whirlpoolWithRSAEncryption | |
SB_CERT_ALGORITHM_ID_DSA_SHA224 | id-dsa-with-sha224 | |
SB_CERT_ALGORITHM_ID_DSA_SHA256 | id-dsa-with-sha256 | |
SB_CERT_ALGORITHM_SHA3_224_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-sha3-224 | |
SB_CERT_ALGORITHM_SHA3_256_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-sha3-256 | |
SB_CERT_ALGORITHM_SHA3_384_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-sha3-384 | |
SB_CERT_ALGORITHM_SHA3_512_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-sha3-512 | |
SB_CERT_ALGORITHM_SHA3_224_ECDSA | id-ecdsa-with-sha3-224 | |
SB_CERT_ALGORITHM_SHA3_256_ECDSA | id-ecdsa-with-sha3-256 | |
SB_CERT_ALGORITHM_SHA3_384_ECDSA | id-ecdsa-with-sha3-384 | |
SB_CERT_ALGORITHM_SHA3_512_ECDSA | id-ecdsa-with-sha3-512 | |
SB_CERT_ALGORITHM_SHA3_224_ECDSA_PLAIN | id-ecdsa-plain-with-sha3-224 | |
SB_CERT_ALGORITHM_SHA3_256_ECDSA_PLAIN | id-ecdsa-plain-with-sha3-256 | |
SB_CERT_ALGORITHM_SHA3_384_ECDSA_PLAIN | id-ecdsa-plain-with-sha3-384 | |
SB_CERT_ALGORITHM_SHA3_512_ECDSA_PLAIN | id-ecdsa-plain-with-sha3-512 | |
SB_CERT_ALGORITHM_ID_DSA_SHA3_224 | id-dsa-with-sha3-224 | |
SB_CERT_ALGORITHM_ID_DSA_SHA3_256 | id-dsa-with-sha3-256 | |
SB_CERT_ALGORITHM_BLAKE2S_128_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2s128 | |
SB_CERT_ALGORITHM_BLAKE2S_160_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2s160 | |
SB_CERT_ALGORITHM_BLAKE2S_224_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2s224 | |
SB_CERT_ALGORITHM_BLAKE2S_256_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2s256 | |
SB_CERT_ALGORITHM_BLAKE2B_160_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2b160 | |
SB_CERT_ALGORITHM_BLAKE2B_256_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2b256 | |
SB_CERT_ALGORITHM_BLAKE2B_384_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2b384 | |
SB_CERT_ALGORITHM_BLAKE2B_512_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2b512 | |
SB_CERT_ALGORITHM_BLAKE2S_128_ECDSA | id-ecdsa-with-blake2s128 | |
SB_CERT_ALGORITHM_BLAKE2S_160_ECDSA | id-ecdsa-with-blake2s160 | |
SB_CERT_ALGORITHM_BLAKE2S_224_ECDSA | id-ecdsa-with-blake2s224 | |
SB_CERT_ALGORITHM_BLAKE2S_256_ECDSA | id-ecdsa-with-blake2s256 | |
SB_CERT_ALGORITHM_BLAKE2B_160_ECDSA | id-ecdsa-with-blake2b160 | |
SB_CERT_ALGORITHM_BLAKE2B_256_ECDSA | id-ecdsa-with-blake2b256 | |
SB_CERT_ALGORITHM_BLAKE2B_384_ECDSA | id-ecdsa-with-blake2b384 | |
SB_CERT_ALGORITHM_BLAKE2B_512_ECDSA | id-ecdsa-with-blake2b512 | |
SB_CERT_ALGORITHM_BLAKE2S_128_ECDSA_PLAIN | id-ecdsa-plain-with-blake2s128 | |
SB_CERT_ALGORITHM_BLAKE2S_160_ECDSA_PLAIN | id-ecdsa-plain-with-blake2s160 | |
SB_CERT_ALGORITHM_BLAKE2S_224_ECDSA_PLAIN | id-ecdsa-plain-with-blake2s224 | |
SB_CERT_ALGORITHM_BLAKE2S_256_ECDSA_PLAIN | id-ecdsa-plain-with-blake2s256 | |
SB_CERT_ALGORITHM_BLAKE2B_160_ECDSA_PLAIN | id-ecdsa-plain-with-blake2b160 | |
SB_CERT_ALGORITHM_BLAKE2B_256_ECDSA_PLAIN | id-ecdsa-plain-with-blake2b256 | |
SB_CERT_ALGORITHM_BLAKE2B_384_ECDSA_PLAIN | id-ecdsa-plain-with-blake2b384 | |
SB_CERT_ALGORITHM_BLAKE2B_512_ECDSA_PLAIN | id-ecdsa-plain-with-blake2b512 | |
SB_CERT_ALGORITHM_ID_DSA_BLAKE2S_224 | id-dsa-with-blake2s224 | |
SB_CERT_ALGORITHM_ID_DSA_BLAKE2S_256 | id-dsa-with-blake2s256 | |
SB_CERT_ALGORITHM_EDDSA_ED25519 | id-Ed25519 | |
SB_CERT_ALGORITHM_EDDSA_ED448 | id-Ed448 | |
SB_CERT_ALGORITHM_EDDSA_ED25519_PH | id-Ed25519ph | |
SB_CERT_ALGORITHM_EDDSA_ED448_PH | id-Ed448ph | |
SB_CERT_ALGORITHM_EDDSA | id-EdDSA | |
SB_CERT_ALGORITHM_EDDSA_SIGNATURE | id-EdDSA-sig |
This property is read-only and not available at design time.
Data Type
String
SigningCertKeyBits Property (ArchiveReader Class)
Returns the length of the public key.
Syntax
ANSI (Cross Platform) int GetSigningCertKeyBits(); Unicode (Windows) INT GetSigningCertKeyBits();
int secureblackbox_archivereader_getsigningcertkeybits(void* lpObj);
int GetSigningCertKeyBits();
Default Value
0
Remarks
Returns the length of the public key.
This property is read-only and not available at design time.
Data Type
Integer
SigningCertKeyFingerprint Property (ArchiveReader Class)
Returns a fingerprint of the public key contained in the certificate.
Syntax
ANSI (Cross Platform) int GetSigningCertKeyFingerprint(char* &lpSigningCertKeyFingerprint, int &lenSigningCertKeyFingerprint); Unicode (Windows) INT GetSigningCertKeyFingerprint(LPSTR &lpSigningCertKeyFingerprint, INT &lenSigningCertKeyFingerprint);
int secureblackbox_archivereader_getsigningcertkeyfingerprint(void* lpObj, char** lpSigningCertKeyFingerprint, int* lenSigningCertKeyFingerprint);
QByteArray GetSigningCertKeyFingerprint();
Remarks
Returns a fingerprint of the public key contained in the certificate.
This property is read-only and not available at design time.
Data Type
Byte Array
SigningCertKeyUsage Property (ArchiveReader Class)
Indicates the purposes of the key contained in the certificate, in the form of an OR'ed flag set.
Syntax
ANSI (Cross Platform) int GetSigningCertKeyUsage(); Unicode (Windows) INT GetSigningCertKeyUsage();
int secureblackbox_archivereader_getsigningcertkeyusage(void* lpObj);
int GetSigningCertKeyUsage();
Default Value
0
Remarks
Indicates the purposes of the key contained in the certificate, in the form of an OR'ed flag set.
This value is a bit mask of the following values:
ckuUnknown | 0x00000 | Unknown key usage |
ckuDigitalSignature | 0x00001 | Digital signature |
ckuNonRepudiation | 0x00002 | Non-repudiation |
ckuKeyEncipherment | 0x00004 | Key encipherment |
ckuDataEncipherment | 0x00008 | Data encipherment |
ckuKeyAgreement | 0x00010 | Key agreement |
ckuKeyCertSign | 0x00020 | Certificate signing |
ckuCRLSign | 0x00040 | Revocation signing |
ckuEncipherOnly | 0x00080 | Encipher only |
ckuDecipherOnly | 0x00100 | Decipher only |
ckuServerAuthentication | 0x00200 | Server authentication |
ckuClientAuthentication | 0x00400 | Client authentication |
ckuCodeSigning | 0x00800 | Code signing |
ckuEmailProtection | 0x01000 | Email protection |
ckuTimeStamping | 0x02000 | Timestamping |
ckuOCSPSigning | 0x04000 | OCSP signing |
ckuSmartCardLogon | 0x08000 | Smartcard logon |
ckuKeyPurposeClientAuth | 0x10000 | Kerberos - client authentication |
ckuKeyPurposeKDC | 0x20000 | Kerberos - KDC |
This property is read-only and not available at design time.
Data Type
Integer
SigningCertKeyValid Property (ArchiveReader Class)
Returns True if the certificate's key is cryptographically valid, and False otherwise.
Syntax
ANSI (Cross Platform) int GetSigningCertKeyValid(); Unicode (Windows) BOOL GetSigningCertKeyValid();
int secureblackbox_archivereader_getsigningcertkeyvalid(void* lpObj);
bool GetSigningCertKeyValid();
Default Value
FALSE
Remarks
Returns True if the certificate's key is cryptographically valid, and False otherwise.
This property is read-only and not available at design time.
Data Type
Boolean
SigningCertOCSPLocations Property (ArchiveReader Class)
Locations of OCSP (Online Certificate Status Protocol) services that can be used to check this certificate's validity, as recorded by the CA.
Syntax
ANSI (Cross Platform) char* GetSigningCertOCSPLocations(); Unicode (Windows) LPWSTR GetSigningCertOCSPLocations();
char* secureblackbox_archivereader_getsigningcertocsplocations(void* lpObj);
QString GetSigningCertOCSPLocations();
Default Value
""
Remarks
Locations of OCSP (Online Certificate Status Protocol) services that can be used to check this certificate's validity, as recorded by the CA.
This property is read-only and not available at design time.
Data Type
String
SigningCertPolicyIDs Property (ArchiveReader Class)
Contains identifiers (OIDs) of the applicable certificate policies.
Syntax
ANSI (Cross Platform) char* GetSigningCertPolicyIDs(); Unicode (Windows) LPWSTR GetSigningCertPolicyIDs();
char* secureblackbox_archivereader_getsigningcertpolicyids(void* lpObj);
QString GetSigningCertPolicyIDs();
Default Value
""
Remarks
Contains identifiers (OIDs) of the applicable certificate policies.
The Certificate Policies extension identifies a sequence of policies under which the certificate has been issued, and which regulate its usage.
This property is read-only and not available at design time.
Data Type
String
SigningCertPublicKeyBytes Property (ArchiveReader Class)
Contains the certificate's public key in DER format.
Syntax
ANSI (Cross Platform) int GetSigningCertPublicKeyBytes(char* &lpSigningCertPublicKeyBytes, int &lenSigningCertPublicKeyBytes); Unicode (Windows) INT GetSigningCertPublicKeyBytes(LPSTR &lpSigningCertPublicKeyBytes, INT &lenSigningCertPublicKeyBytes);
int secureblackbox_archivereader_getsigningcertpublickeybytes(void* lpObj, char** lpSigningCertPublicKeyBytes, int* lenSigningCertPublicKeyBytes);
QByteArray GetSigningCertPublicKeyBytes();
Remarks
Contains the certificate's public key in DER format.
This property is read-only and not available at design time.
Data Type
Byte Array
SigningCertSelfSigned Property (ArchiveReader Class)
Indicates whether the certificate is self-signed (root) or signed by an external CA.
Syntax
ANSI (Cross Platform) int GetSigningCertSelfSigned(); Unicode (Windows) BOOL GetSigningCertSelfSigned();
int secureblackbox_archivereader_getsigningcertselfsigned(void* lpObj);
bool GetSigningCertSelfSigned();
Default Value
FALSE
Remarks
Indicates whether the certificate is self-signed (root) or signed by an external CA.
This property is read-only and not available at design time.
Data Type
Boolean
SigningCertSerialNumber Property (ArchiveReader Class)
Returns the certificate's serial number.
Syntax
ANSI (Cross Platform) int GetSigningCertSerialNumber(char* &lpSigningCertSerialNumber, int &lenSigningCertSerialNumber); Unicode (Windows) INT GetSigningCertSerialNumber(LPSTR &lpSigningCertSerialNumber, INT &lenSigningCertSerialNumber);
int secureblackbox_archivereader_getsigningcertserialnumber(void* lpObj, char** lpSigningCertSerialNumber, int* lenSigningCertSerialNumber);
QByteArray GetSigningCertSerialNumber();
Remarks
Returns the certificate's serial number.
This property is read-only and not available at design time.
Data Type
Byte Array
SigningCertSigAlgorithm Property (ArchiveReader Class)
Indicates the algorithm that was used by the CA to sign this certificate.
Syntax
ANSI (Cross Platform) char* GetSigningCertSigAlgorithm(); Unicode (Windows) LPWSTR GetSigningCertSigAlgorithm();
char* secureblackbox_archivereader_getsigningcertsigalgorithm(void* lpObj);
QString GetSigningCertSigAlgorithm();
Default Value
""
Remarks
Indicates the algorithm that was used by the CA to sign this certificate.
This property is read-only and not available at design time.
Data Type
String
SigningCertSubject Property (ArchiveReader Class)
The common name of the certificate holder, typically an individual's name, a URL, an e-mail address, or a company name.
Syntax
ANSI (Cross Platform) char* GetSigningCertSubject(); Unicode (Windows) LPWSTR GetSigningCertSubject();
char* secureblackbox_archivereader_getsigningcertsubject(void* lpObj);
QString GetSigningCertSubject();
Default Value
""
Remarks
The common name of the certificate holder, typically an individual's name, a URL, an e-mail address, or a company name.
This property is read-only and not available at design time.
Data Type
String
SigningCertSubjectKeyID Property (ArchiveReader Class)
Contains a unique identifier (fingerprint) of the certificate's private key.
Syntax
ANSI (Cross Platform) int GetSigningCertSubjectKeyID(char* &lpSigningCertSubjectKeyID, int &lenSigningCertSubjectKeyID); Unicode (Windows) INT GetSigningCertSubjectKeyID(LPSTR &lpSigningCertSubjectKeyID, INT &lenSigningCertSubjectKeyID);
int secureblackbox_archivereader_getsigningcertsubjectkeyid(void* lpObj, char** lpSigningCertSubjectKeyID, int* lenSigningCertSubjectKeyID);
QByteArray GetSigningCertSubjectKeyID();
Remarks
Contains a unique identifier (fingerprint) of the certificate's private key.
Subject Key Identifier is a (non-critical) X.509 certificate extension which allows the identification of certificates containing a particular public key. In SecureBlackbox, the unique identifier is represented with a SHA1 hash of the bit string of the subject public key.
This property is read-only and not available at design time.
Data Type
Byte Array
SigningCertSubjectRDN Property (ArchiveReader Class)
A collection of information, in the form of [OID, Value] pairs, uniquely identifying the certificate holder (subject).
Syntax
ANSI (Cross Platform) char* GetSigningCertSubjectRDN(); Unicode (Windows) LPWSTR GetSigningCertSubjectRDN();
char* secureblackbox_archivereader_getsigningcertsubjectrdn(void* lpObj);
QString GetSigningCertSubjectRDN();
Default Value
""
Remarks
A collection of information, in the form of [OID, Value] pairs, uniquely identifying the certificate holder (subject).
This property is read-only and not available at design time.
Data Type
String
SigningCertValidFrom Property (ArchiveReader Class)
The time point at which the certificate becomes valid, in UTC.
Syntax
ANSI (Cross Platform) char* GetSigningCertValidFrom(); Unicode (Windows) LPWSTR GetSigningCertValidFrom();
char* secureblackbox_archivereader_getsigningcertvalidfrom(void* lpObj);
QString GetSigningCertValidFrom();
Default Value
""
Remarks
The time point at which the certificate becomes valid, in UTC.
This property is read-only and not available at design time.
Data Type
String
SigningCertValidTo Property (ArchiveReader Class)
The time point at which the certificate expires, in UTC.
Syntax
ANSI (Cross Platform) char* GetSigningCertValidTo(); Unicode (Windows) LPWSTR GetSigningCertValidTo();
char* secureblackbox_archivereader_getsigningcertvalidto(void* lpObj);
QString GetSigningCertValidTo();
Default Value
""
Remarks
The time point at which the certificate expires, in UTC.
This property is read-only and not available at design time.
Data Type
String
Close Method (ArchiveReader Class)
Closes the current archive.
Syntax
ANSI (Cross Platform) int Close(); Unicode (Windows) INT Close();
int secureblackbox_archivereader_close(void* lpObj);
int Close();
Remarks
Use this method to close the archive that is currently opened and release the associated memory. You won't be able to extract files or access the archive details after closing the archive.
Error Handling (C++)
This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)
Config Method (ArchiveReader Class)
Sets or retrieves a configuration setting.
Syntax
ANSI (Cross Platform) char* Config(const char* lpszConfigurationString); Unicode (Windows) LPWSTR Config(LPCWSTR lpszConfigurationString);
char* secureblackbox_archivereader_config(void* lpObj, const char* lpszConfigurationString);
QString Config(const QString& qsConfigurationString);
Remarks
Config is a generic method available in every class. It is used to set and retrieve configuration settings for the class.
These settings are similar in functionality to properties, but they are rarely used. In order to avoid "polluting" the property namespace of the class, access to these internal properties is provided through the Config method.
To set a configuration setting named PROPERTY, you must call Config("PROPERTY=VALUE"), where VALUE is the value of the setting expressed as a string. For boolean values, use the strings "True", "False", "0", "1", "Yes", or "No" (case does not matter).
To read (query) the value of a configuration setting, you must call Config("PROPERTY"). The value will be returned as a string.
Error Handling (C++)
This method returns a String value; after it returns, call the GetLastErrorCode() method to obtain its result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message.
DoAction Method (ArchiveReader Class)
Performs an additional action.
Syntax
ANSI (Cross Platform) char* DoAction(const char* lpszActionID, const char* lpszActionParams); Unicode (Windows) LPWSTR DoAction(LPCWSTR lpszActionID, LPCWSTR lpszActionParams);
char* secureblackbox_archivereader_doaction(void* lpObj, const char* lpszActionID, const char* lpszActionParams);
QString DoAction(const QString& qsActionID, const QString& qsActionParams);
Remarks
DoAction is a generic method available in every class. It is used to perform an additional action introduced after the product major release. The list of actions is not fixed, and may be flexibly extended over time.
The unique identifier (case insensitive) of the action is provided in the ActionID parameter.
ActionParams contains the value of a single parameter, or a list of multiple parameters for the action in the form of PARAM1=VALUE1;PARAM2=VALUE2;....
Error Handling (C++)
This method returns a String value; after it returns, call the GetLastErrorCode() method to obtain its result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message.
Extract Method (ArchiveReader Class)
Extracts a single file from the archive.
Syntax
ANSI (Cross Platform) int Extract(const char* lpszPath, const char* lpszLocalPath, int bPreserveFullPath); Unicode (Windows) INT Extract(LPCWSTR lpszPath, LPCWSTR lpszLocalPath, BOOL bPreserveFullPath);
int secureblackbox_archivereader_extract(void* lpObj, const char* lpszPath, const char* lpszLocalPath, int bPreserveFullPath);
int Extract(const QString& qsPath, const QString& qsLocalPath, bool bPreserveFullPath);
Remarks
Use this method to extract a single file from the archive.
Pass the internal path to the entry in the archive via the Path parameter, and the path where to save the extracted entry via the LocalPath parameter. Set PreserveFullPath to true to enforce full-path extraction, in which case LocalPath would indicate the mount point at which the full Path needs to be rooted. If PreserveFullPath is false, the LocalPath provides the final location for the extracted file.
Use ExtractAll to extract all files at once.
Error Handling (C++)
This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)
ExtractAll Method (ArchiveReader Class)
Extract all the files contained in the archive.
Syntax
ANSI (Cross Platform) int ExtractAll(const char* lpszOutputPath, int bOverwriteExisting); Unicode (Windows) INT ExtractAll(LPCWSTR lpszOutputPath, BOOL bOverwriteExisting);
int secureblackbox_archivereader_extractall(void* lpObj, const char* lpszOutputPath, int bOverwriteExisting);
int ExtractAll(const QString& qsOutputPath, bool bOverwriteExisting);
Remarks
Use this method to extract all the files contained in the archive file. Pass the path where the extracted files should be saved via the OutputPath parameter. Existing files will be overwritten if the OverwriteExisting parameter is set to true.
You can cherry-pick the files to extract, as well as choose different extraction destinations (including files at custom locations, streams, or memory buffers) by subscribing to BeforeExtractFile and AfterExtractFile events.
Use Extract to extract a single file.
Error Handling (C++)
This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)
Open Method (ArchiveReader Class)
Opens an archive file.
Syntax
ANSI (Cross Platform) int Open(int iArchiveType, const char* lpszArchivePath); Unicode (Windows) INT Open(INT iArchiveType, LPCWSTR lpszArchivePath);
int secureblackbox_archivereader_open(void* lpObj, int iArchiveType, const char* lpszArchivePath);
int Open(int iArchiveType, const QString& qsArchivePath);
Remarks
Call this method to open an archive file. Provide the archive type via the ArchiveType parameter, and the path via the ArchivePath parameter.
The following archive types (formats) are supported:
aftUnknown (0) | Unknown type. |
aftZip (1) | The archive contains data in ZIP format. |
aftGzip (2) | The archive file contains data in GZIP format. |
aftBzip2 (3) | The archive contains BZIP2 data. |
aftTarGzip (4) | The archive contains a .tar.gz file. |
aftTarBzip2 (5) | The archive contains data in .tar.bz2 format. |
Error Handling (C++)
This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)
OpenBytes Method (ArchiveReader Class)
Loads an archive file from a byte array.
Syntax
ANSI (Cross Platform) int OpenBytes(int iArchiveType, const char* lpArchiveBytes, int lenArchiveBytes); Unicode (Windows) INT OpenBytes(INT iArchiveType, LPCSTR lpArchiveBytes, INT lenArchiveBytes);
int secureblackbox_archivereader_openbytes(void* lpObj, int iArchiveType, const char* lpArchiveBytes, int lenArchiveBytes);
int OpenBytes(int iArchiveType, QByteArray qbaArchiveBytes);
Remarks
Call this method to load an archive file from a byte array. Provide the archive type via the ArchiveType parameter, and the byte array containing the archive data via the ArchiveBytes parameter.
The following archive types (formats) are supported:
aftUnknown (0) | Unknown type. |
aftZip (1) | The archive contains data in ZIP format. |
aftGzip (2) | The archive file contains data in GZIP format. |
aftBzip2 (3) | The archive contains BZIP2 data. |
aftTarGzip (4) | The archive contains a .tar.gz file. |
aftTarBzip2 (5) | The archive contains data in .tar.bz2 format. |
Error Handling (C++)
This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)
OpenStream Method (ArchiveReader Class)
Loads an archive file from a stream.
Syntax
ANSI (Cross Platform) int OpenStream(int iArchiveType, SecureBlackboxStream* sArchiveStream); Unicode (Windows) INT OpenStream(INT iArchiveType, SecureBlackboxStream* sArchiveStream);
int secureblackbox_archivereader_openstream(void* lpObj, int iArchiveType, SecureBlackboxStream* sArchiveStream);
int OpenStream(int iArchiveType, SecureBlackboxStream* sArchiveStream);
Remarks
Call this method to load an archive file from a stream. Provide the archive type via the ArchiveType parameter, and the stream containing the archive data via the ArchiveStream parameter.
The following archive types (formats) are supported:
aftUnknown (0) | Unknown type. |
aftZip (1) | The archive contains data in ZIP format. |
aftGzip (2) | The archive file contains data in GZIP format. |
aftBzip2 (3) | The archive contains BZIP2 data. |
aftTarGzip (4) | The archive contains a .tar.gz file. |
aftTarBzip2 (5) | The archive contains data in .tar.bz2 format. |
Error Handling (C++)
This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)
AfterExtractFile Event (ArchiveReader Class)
Marks the completion of extraction of an archived file.
Syntax
ANSI (Cross Platform) virtual int FireAfterExtractFile(ArchiveReaderAfterExtractFileEventParams *e);
typedef struct {
const char *Path;
int64 FileSize;
int DataSource; int reserved; } ArchiveReaderAfterExtractFileEventParams;
Unicode (Windows) virtual INT FireAfterExtractFile(ArchiveReaderAfterExtractFileEventParams *e);
typedef struct {
LPCWSTR Path;
LONG64 FileSize;
INT DataSource; INT reserved; } ArchiveReaderAfterExtractFileEventParams;
#define EID_ARCHIVEREADER_AFTEREXTRACTFILE 1 virtual INT SECUREBLACKBOX_CALL FireAfterExtractFile(LPSTR &lpszPath, LONG64 &lFileSize, INT &iDataSource);
class ArchiveReaderAfterExtractFileEventParams { public: const QString &Path(); qint64 FileSize(); int DataSource(); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void AfterExtractFile(ArchiveReaderAfterExtractFileEventParams *e);
// Or, subclass ArchiveReader and override this emitter function. virtual int FireAfterExtractFile(ArchiveReaderAfterExtractFileEventParams *e) {...}
Remarks
Subscribe to this event to get notified about the completion of extraction of an archived file.
The Path parameter specifies the internal path to the entry inside the archive. The FileSize indicates the size of the decompressed file, and the DataSource specifies the type of the destination media.
fdsFile (0) | The data was saved to a file. |
fdsStream (1) | The data was saved into a stream assigned to FileStream property. |
fdsBuffer (2) | The file data is available in FileData buffer. |
BeforeExtractFile Event (ArchiveReader Class)
Marks the start of extraction of an archived file.
Syntax
ANSI (Cross Platform) virtual int FireBeforeExtractFile(ArchiveReaderBeforeExtractFileEventParams *e);
typedef struct {
const char *Path;
int64 FileSize;
int DataSource;
char *ExtractionPath;
int Skip; int reserved; } ArchiveReaderBeforeExtractFileEventParams;
Unicode (Windows) virtual INT FireBeforeExtractFile(ArchiveReaderBeforeExtractFileEventParams *e);
typedef struct {
LPCWSTR Path;
LONG64 FileSize;
INT DataSource;
LPWSTR ExtractionPath;
BOOL Skip; INT reserved; } ArchiveReaderBeforeExtractFileEventParams;
#define EID_ARCHIVEREADER_BEFOREEXTRACTFILE 2 virtual INT SECUREBLACKBOX_CALL FireBeforeExtractFile(LPSTR &lpszPath, LONG64 &lFileSize, INT &iDataSource, LPSTR &lpszExtractionPath, BOOL &bSkip);
class ArchiveReaderBeforeExtractFileEventParams { public: const QString &Path(); qint64 FileSize(); int DataSource(); void SetDataSource(int iDataSource); const QString &ExtractionPath(); void SetExtractionPath(const QString &qsExtractionPath); bool Skip(); void SetSkip(bool bSkip); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void BeforeExtractFile(ArchiveReaderBeforeExtractFileEventParams *e);
// Or, subclass ArchiveReader and override this emitter function. virtual int FireBeforeExtractFile(ArchiveReaderBeforeExtractFileEventParams *e) {...}
Remarks
Subscribe to this event to be notified about the start of extraction of an archived entry. The handler of this event is a good place to tune up the destination media.
The Path parameter indicates the path to the extracted entry in the archive. The FileSize specifies the uncompressed size of the file. Set the by-reference DataSource parameter in accordance with the desired extraction media type:
fdsFile (0) | The data will be saved to a file indicated by the ExtractionPath parameter. You can change the path here. |
fdsStream (1) | The data will be saved into a stream assigned to FileStream property. |
fdsBuffer (2) | The file data will be saved to a buffer and returned via the FileData property. |
Use the Skip parameter to cancel extraction of this file and proceed to the next one.
DecryptionPasswordNeeded Event (ArchiveReader Class)
Requests a decryption password, when needed.
Syntax
ANSI (Cross Platform) virtual int FireDecryptionPasswordNeeded(ArchiveReaderDecryptionPasswordNeededEventParams *e);
typedef struct {
const char *PasswordTarget;
int Cancel; int reserved; } ArchiveReaderDecryptionPasswordNeededEventParams;
Unicode (Windows) virtual INT FireDecryptionPasswordNeeded(ArchiveReaderDecryptionPasswordNeededEventParams *e);
typedef struct {
LPCWSTR PasswordTarget;
BOOL Cancel; INT reserved; } ArchiveReaderDecryptionPasswordNeededEventParams;
#define EID_ARCHIVEREADER_DECRYPTIONPASSWORDNEEDED 3 virtual INT SECUREBLACKBOX_CALL FireDecryptionPasswordNeeded(LPSTR &lpszPasswordTarget, BOOL &bCancel);
class ArchiveReaderDecryptionPasswordNeededEventParams { public: const QString &PasswordTarget(); bool Cancel(); void SetCancel(bool bCancel); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void DecryptionPasswordNeeded(ArchiveReaderDecryptionPasswordNeededEventParams *e);
// Or, subclass ArchiveReader and override this emitter function. virtual int FireDecryptionPasswordNeeded(ArchiveReaderDecryptionPasswordNeededEventParams *e) {...}
Remarks
Class fires this event when it needs a password to decrypt the archive. Subscribe to this event if you expect to process encrypted archives.
Inside the event handler, please assign the correct password to DecryptionPassword property, or set Cancel parameter to true to terminate the processing.
Error Event (ArchiveReader Class)
Reports information about errors during archive processing.
Syntax
ANSI (Cross Platform) virtual int FireError(ArchiveReaderErrorEventParams *e);
typedef struct {
int ErrorCode;
const char *Description; int reserved; } ArchiveReaderErrorEventParams;
Unicode (Windows) virtual INT FireError(ArchiveReaderErrorEventParams *e);
typedef struct {
INT ErrorCode;
LPCWSTR Description; INT reserved; } ArchiveReaderErrorEventParams;
#define EID_ARCHIVEREADER_ERROR 4 virtual INT SECUREBLACKBOX_CALL FireError(INT &iErrorCode, LPSTR &lpszDescription);
class ArchiveReaderErrorEventParams { public: int ErrorCode(); const QString &Description(); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void Error(ArchiveReaderErrorEventParams *e);
// Or, subclass ArchiveReader and override this emitter function. virtual int FireError(ArchiveReaderErrorEventParams *e) {...}
Remarks
The event is fired in case of exceptional conditions during archive processing.
ErrorCode contains an error code and Description contains a textual description of the error.
Notification Event (ArchiveReader Class)
This event notifies the application about an underlying control flow event.
Syntax
ANSI (Cross Platform) virtual int FireNotification(ArchiveReaderNotificationEventParams *e);
typedef struct {
const char *EventID;
const char *EventParam; int reserved; } ArchiveReaderNotificationEventParams;
Unicode (Windows) virtual INT FireNotification(ArchiveReaderNotificationEventParams *e);
typedef struct {
LPCWSTR EventID;
LPCWSTR EventParam; INT reserved; } ArchiveReaderNotificationEventParams;
#define EID_ARCHIVEREADER_NOTIFICATION 5 virtual INT SECUREBLACKBOX_CALL FireNotification(LPSTR &lpszEventID, LPSTR &lpszEventParam);
class ArchiveReaderNotificationEventParams { public: const QString &EventID(); const QString &EventParam(); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void Notification(ArchiveReaderNotificationEventParams *e);
// Or, subclass ArchiveReader and override this emitter function. virtual int FireNotification(ArchiveReaderNotificationEventParams *e) {...}
Remarks
The class fires this event to let the application know about some event, occurrence, or milestone in the class. For example, it may fire to report completion of the document processing. The list of events being reported is not fixed, and may be flexibly extended over time.
The unique identifier of the event is provided in the EventID parameter. EventParam contains any parameters accompanying the occurrence. Depending on the type of the class, the exact action it is performing, or the document being processed, one or both may be omitted.
Progress Event (ArchiveReader Class)
Reports the progress of data extraction.
Syntax
ANSI (Cross Platform) virtual int FireProgress(ArchiveReaderProgressEventParams *e);
typedef struct {
int64 Processed;
int64 Total;
int64 OverallProcessed;
int64 OverallTotal;
int Cancel; int reserved; } ArchiveReaderProgressEventParams;
Unicode (Windows) virtual INT FireProgress(ArchiveReaderProgressEventParams *e);
typedef struct {
LONG64 Processed;
LONG64 Total;
LONG64 OverallProcessed;
LONG64 OverallTotal;
BOOL Cancel; INT reserved; } ArchiveReaderProgressEventParams;
#define EID_ARCHIVEREADER_PROGRESS 6 virtual INT SECUREBLACKBOX_CALL FireProgress(LONG64 &lProcessed, LONG64 &lTotal, LONG64 &lOverallProcessed, LONG64 &lOverallTotal, BOOL &bCancel);
class ArchiveReaderProgressEventParams { public: qint64 Processed(); qint64 Total(); qint64 OverallProcessed(); qint64 OverallTotal(); bool Cancel(); void SetCancel(bool bCancel); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void Progress(ArchiveReaderProgressEventParams *e);
// Or, subclass ArchiveReader and override this emitter function. virtual int FireProgress(ArchiveReaderProgressEventParams *e) {...}
Remarks
Subscribe to this event to be notified about decompression progress.
Processed and Total report the progress of extraction of the current entry; OverallProcessed and OverallTotal report the progress of the whole operation. Set Cancel to true to stop the operation.
RecipientFound Event (ArchiveReader Class)
Informs the application that an archive is encrypted with a digital certificate.
Syntax
ANSI (Cross Platform) virtual int FireRecipientFound(ArchiveReaderRecipientFoundEventParams *e);
typedef struct {
const char *RecipientHash; int lenRecipientHash;
int CertFound; int reserved; } ArchiveReaderRecipientFoundEventParams;
Unicode (Windows) virtual INT FireRecipientFound(ArchiveReaderRecipientFoundEventParams *e);
typedef struct {
LPCSTR RecipientHash; INT lenRecipientHash;
BOOL CertFound; INT reserved; } ArchiveReaderRecipientFoundEventParams;
#define EID_ARCHIVEREADER_RECIPIENTFOUND 7 virtual INT SECUREBLACKBOX_CALL FireRecipientFound(LPSTR &lpRecipientHash, INT &lenRecipientHash, BOOL &bCertFound);
class ArchiveReaderRecipientFoundEventParams { public: const QByteArray &RecipientHash(); bool CertFound(); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void RecipientFound(ArchiveReaderRecipientFoundEventParams *e);
// Or, subclass ArchiveReader and override this emitter function. virtual int FireRecipientFound(ArchiveReaderRecipientFoundEventParams *e) {...}
Remarks
The class fires this event when processing archives encrypted with an X.509 certificate. CertFound indicates whether the matching certificate has been found in DecryptionCertificates collection.
This event is an opportunity to add the decryption certificate on a later stage if it was not known at the start of the processing.
SignatureFound Event (ArchiveReader Class)
Signifies the start of signature validation.
Syntax
ANSI (Cross Platform) virtual int FireSignatureFound(ArchiveReaderSignatureFoundEventParams *e);
typedef struct {
const char *IssuerRDN;
const char *SerialNumber; int lenSerialNumber;
const char *SubjectKeyID; int lenSubjectKeyID;
int CertFound;
int ValidateSignature;
int ValidateChain; int reserved; } ArchiveReaderSignatureFoundEventParams;
Unicode (Windows) virtual INT FireSignatureFound(ArchiveReaderSignatureFoundEventParams *e);
typedef struct {
LPCWSTR IssuerRDN;
LPCSTR SerialNumber; INT lenSerialNumber;
LPCSTR SubjectKeyID; INT lenSubjectKeyID;
BOOL CertFound;
BOOL ValidateSignature;
BOOL ValidateChain; INT reserved; } ArchiveReaderSignatureFoundEventParams;
#define EID_ARCHIVEREADER_SIGNATUREFOUND 8 virtual INT SECUREBLACKBOX_CALL FireSignatureFound(LPSTR &lpszIssuerRDN, LPSTR &lpSerialNumber, INT &lenSerialNumber, LPSTR &lpSubjectKeyID, INT &lenSubjectKeyID, BOOL &bCertFound, BOOL &bValidateSignature, BOOL &bValidateChain);
class ArchiveReaderSignatureFoundEventParams { public: const QString &IssuerRDN(); const QByteArray &SerialNumber(); const QByteArray &SubjectKeyID(); bool CertFound(); bool ValidateSignature(); void SetValidateSignature(bool bValidateSignature); bool ValidateChain(); void SetValidateChain(bool bValidateChain); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void SignatureFound(ArchiveReaderSignatureFoundEventParams *e);
// Or, subclass ArchiveReader and override this emitter function. virtual int FireSignatureFound(ArchiveReaderSignatureFoundEventParams *e) {...}
Remarks
This event tells the application that signature validation is about to start, and provides the details about the signer's certificate via its IssuerRDN, SerialNumber, and SubjectKeyID parameters. It fires for every signature located in the verified document or message.
The CertFound parameter is set to True if the class has found the needed certificate in one of the known locations, and to False otherwise, in which case you must provide it manually via the KnownCertificates property.
Signature validation consists of two independent stages: cryptographic signature validation and chain validation. Separate validation results are reported for each, with the and properties respectively.
Use the ValidateSignature and ValidateChain parameters to tell the verifier which stages to include in the validation.
SecureBlackboxStream Type
Syntax
SecureBlackboxStream (declared in secureblackbox.h)
Remarks
The ArchiveReader class includes one or more API members that take a stream object as a parameter. To use such API members, create a concrete class that implements the SecureBlackboxStream interface and pass the ArchiveReader class an instance of that concrete class.
When implementing the SecureBlackboxStream interface's properties and methods, they must behave as described below. If the concrete class's implementation does not behave as expected, undefined behavior may occur.
Config Settings (ArchiveReader Class)
The class accepts one or more of the following configuration settings. Configuration settings are similar in functionality to properties, but they are rarely used. In order to avoid "polluting" the property namespace of the class, access to these internal properties is provided through the Config method.ArchiveReader Config Settings
Use this configuration setting to retrieve attributes for the files kept in the archive. Windows- and Unix-style attributes are supported:
Console.WriteLine(reader.Files[i].FileName);
Console.WriteLine(reader.Config("Attributes[" + i.ToString() + "]"));
// outputs:
//
// file1.txt
// unix:-rw-r--r--
Enable this property to force overwriting of existing files.
If this config setting is enabled, the component will apply the attributes saved in the archive to the extracted files. Enabling this setting may carry compatibility risks as certain file systems may not support attribute management fully.
This setting specifies an absolute path to the location on disk where temporary files are stored.
Base Config Settings
This global property enables or disables private key material check before each signing operation. This slows down performance a bit, but prevents a selection of attacks on RSA keys where keys with unknown origins are used.
You can switch this property off to improve performance if your project only uses known, good private keys.
Set this property to enable or disable cookies caching for the class.
Supported values are:
off | No caching (default) | |
local | Local caching | |
global | Global caching |
Use this property to get cookies from the internal cookie storage of the class and/or restore them back between application sessions.
This global property sets the default number of iterations for all supported key derivation algorithms. Note that you can provide the required number of iterations by using properties of the relevant key generation component; this global setting is used in scenarios where specific iteration count is not or cannot be provided.
This global property enables or disables support for finite field DHE key exchange methods in TLS clients. FF DHE is a slower algorithm if compared to EC DHE; enabling it may result in slower connections.
This setting only applies to sessions negotiated with TLS version 1.3.
Use this property to get cookies from the GLOBAL cookie storage or restore them back between application sessions. These cookies will be used by all the classes that have its CookieCaching property set to "global".
This global setting defines the User-Agent field of the HTTP request provides information about the software that initiates the request. This value will be used by all the HTTP clients including the ones used internally in other classes.
Contains a comma-separated list of values that specifies where debug log should be dumped.
Supported values are:
file | File | |
console | Console | |
systemlog | System Log (supported for Android only) | |
debugger | Debugger (supported for VCL for Windows and .Net) |
Contains a comma-separated list of values that specifies which debug log details to dump.
Supported values are:
time | Current time | |
level | Level | |
package | Package name | |
module | Module name | |
class | Class name | |
method | Method name | |
threadid | Thread Id | |
contenttype | Content type | |
content | Content | |
all | All details |
Use this property to provide a path to the log file.
Contains a comma-separated list of value pairs ("name:value") that describe filters.
Supported filter names are:
exclude-package | Exclude a package specified in the value | |
exclude-module | Exclude a module specified in the value | |
exclude-class | Exclude a class specified in the value | |
exclude-method | Exclude a method specified in the value | |
include-package | Include a package specified in the value | |
include-module | Include a module specified in the value | |
include-class | Include a class specified in the value | |
include-method | Include a method specified in the value |
Use this property to set the log flush mode. The following values are defined:
none | No flush (caching only) | |
immediate | Immediate flush (real-time logging) | |
maxcount | Flush cached entries upon reaching LogMaxEventCount entries in the cache. |
Use this property to provide the desired debug log level.
Supported values are:
none | None (by default) | |
fatal | Severe errors that cause premature termination. | |
error | Other runtime errors or unexpected conditions. | |
warning | Use of deprecated APIs, poor use of API, 'almost' errors, other runtime situations that are undesirable or unexpected, but not necessarily "wrong". | |
info | Interesting runtime events (startup/shutdown). | |
debug | Detailed information on flow of through the system. | |
trace | More detailed information. |
Use this property to specify the log event number threshold. This threshold may have different effects, depending on the rotation setting and/or the flush mode.
The default value of this setting is 100.
Use this property to set the log rotation mode. The following values are defined:
none | No rotation | |
deleteolder | Delete older entries from the cache upon reaching LogMaxEventCount | |
keepolder | Keep older entries in the cache upon reaching LogMaxEventCount (newer entries are discarded) |
This global property limits the maximal allowed length for ASN.1 tag data for non-content-carrying structures, such as certificates, CRLs, or timestamps. It does not affect structures that can carry content, such as CMS/CAdES messages. This is a security property aiming at preventing DoS attacks.
This global property limits the maximal depth of ASN.1 trees that the component can handle without throwing an error. This is a security property aiming at preventing DoS attacks.
This global setting defines the hash algorithm to use in OCSP requests during chain validation. Some OCSP responders can only use older algorithms, in which case setting this property to SHA1 may be helpful.
Set this property to enable or disable static DNS rules for the class. Works only if UseOwnDNSResolver is set to true.
Supported values are:
none | No static DNS rules (default) | |
local | Local static DNS rules | |
global | Global static DNS rules |
Use this property to get or set an IP address for the specified domain name in the internal (of the class) or global DNS rules storage depending on the StaticDNS value. The type of the IP address (IPv4 or IPv6) is determined automatically. If both addresses are available, they are devided by the | (pipe) character.
Use this property to get static DNS rules from the current rules storage or restore them back between application sessions. If StaticDNS of the class is set to "local", the property returns/restores the rules from/to the internal storage of the class. If StaticDNS of the class is set to "global", the property returns/restores the rules from/to the GLOBAL storage. The rules list is returned and accepted in JSON format.
Use this config property to store any custom data.
Use this property to limit the search of chached TLS sessions to the specified group. Sessions from other groups will be ignored. By default, all sessions are cached with an empty group name and available to all the classes.
Use this property to specify how much time the TLS session should be kept in the session cache. After this time, the session expires and will be automatically removed from the cache. Default value is 300 seconds (5 minutes).
Use this property to specify the time interval of purging the expired TLS sessions from the session cache. Default value is 60 seconds (1 minute).
Set this global property to false to force all the client components to use the DNS resolver provided by the target OS instead of using own one.
Set this global property to false to make each validation run use its own copy of system certificate stores.
This global setting defines who is responsible for performing RSA-OAEP and RSA-PSS computations where the private key is stored in a Windows system store and is exportable. If set to true, SBB will delegate the computations to Windows via a CryptoAPI call. Otherwise, it will export the key material and perform the computations using its own OAEP/PSS implementation.
This setting only applies to certificates originating from a Windows system store.
Use this global property to enable or disable the use of operating system-driven pseudorandom number generation.
Trappable Errors (ArchiveReader Class)
Error Handling (C++)
Call the GetLastErrorCode() method to obtain the last called method's result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. Known error codes are listed below. If an error occurs, the GetLastError() method can be called to retrieve the associated error message.