SecureBlackbox 2020 Python Edition

Questions / Feedback?

XMLDecryptor Class

Properties   Methods   Events   Configuration Settings   Errors  

The XMLDecryptor class decrypts XML documents.

Syntax

class secureblackbox.XMLDecryptor

Remarks

XMlDecryptor decrypts XML documents encrypted with certificates or generic keys.

Property List


The following is the full list of the properties of the class with short descriptions. Click on the links for further details.

decryption_keyThe symmetric (session) key used to encrypt the data.
encodingSpecifies XML encoding.
encrypted_data_typeDefines the type of data being encrypted.
encryption_methodThe encryption method used to encrypt the document.
encrypt_keySpecifies if the encryption key is encrypted.
external_crypto_custom_paramsCustom parameters to be passed to the signing service (uninterpreted).
external_crypto_dataAdditional data to be included in the async state and mirrored back by the requestor.
external_crypto_external_hash_calculationSpecifies whether the message hash is to be calculated at the external endpoint.
external_crypto_hash_algorithmSpecifies the request's signature hash algorithm.
external_crypto_key_idThe ID of the pre-shared key used for DC request authentication.
external_crypto_key_secretThe pre-shared key used for DC request authentication.
external_crypto_methodSpecifies the asynchronous signing method.
external_crypto_modeSpecifies the external cryptography mode.
external_crypto_public_key_algorithmProvide public key algorithm here if the certificate is not available on the pre-signing stage.
external_dataThe data that should be encrypted.
input_bytesUse this property to pass the input to class in the byte array form.
input_fileThe XML file to be decrypted.
key_decryption_cert_bytesReturns raw certificate data in DER format.
key_decryption_cert_handleAllows to get or set a 'handle', a unique identifier of the underlying property object.
key_decryption_keyThe symmetric key used to decrypt a session key.
key_encryption_typeDefines how the session key is encrypted.
key_info_item_countThe number of records in the KeyInfoItem arrays.
key_info_item_issuer_rdnA collection of information, in the form of [OID, Value] pairs, uniquely identifying the certificate issuer.
key_info_item_serial_numberReturns the certificate's serial number.
key_info_item_subject_key_idContains a unique identifier (fingerprint) of the certificate's private key.
key_info_item_subject_rdnA collection of information, in the form of [OID, Value] pairs, uniquely identifying the certificate holder (subject).
key_info_certificate_countThe number of records in the KeyInfoCertificate arrays.
key_info_certificate_bytesReturns raw certificate data in DER format.
key_info_certificate_handleAllows to get or set a 'handle', a unique identifier of the underlying property object.
key_transport_methodDefines how the session key is encrypted.
key_wrap_methodThe key wrap method used to encrypt the session key.
output_bytesUse this property to read the output the class object has produced.
output_fileDefines where to save the decrypted XML document.
use_gcmIndicates if GCM mode was enabled.
xml_elementDefines the XML element to decrypt.
namespace_countThe number of records in the Namespace arrays.
namespace_prefixA user-defined prefix value of a namespace.
namespace_uriA user-defined URI value of a namespace.

Method List


The following is the full list of the methods of the class with short descriptions. Click on the links for further details.

configSets or retrieves a configuration setting.
decryptDecrypts an XML document.

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.

on_decryption_info_neededRequests decryption information from the application.
on_errorInformation about errors during signing.
on_external_decryptHandles remote or external decryption.
on_notificationThis event notifies the application about an underlying control flow event.
on_save_external_dataRequest to save decrypted external data.

Configuration Settings


The following is a list of configuration settings for the class with short descriptions. Click on the links for further details.

KeyNameContains information about the key used for encryption.
MimeTypeContains the mime type of the encrypted data.
TempPathLocation where the temporary files are stored.
WriteBOMSpecifies whether byte-order mark should be written when saving the document.
CheckKeyIntegrityBeforeUseEnables or disable private key integrity check before use.
CookieCachingSpecifies whether a cookie cache should be used for HTTP(S) transports.
CookiesGets or sets local cookies for the class (supported for HTTPClient, RESTClient and SOAPClient only).
DefDeriveKeyIterationsSpecifies the default key derivation algorithm iteration count.
EnableClientSideSSLFFDHEEnables or disables finite field DHE key exchange support in TLS clients.
GlobalCookiesGets or sets global cookies for all the HTTP transports.
HttpUserAgentSpecifies the user agent name to be used by all HTTP clients.
LogDestinationSpecifies the debug log destination.
LogDetailsSpecifies the debug log details to dump.
LogFileSpecifies the debug log filename.
LogFiltersSpecifies the debug log filters.
LogFlushModeSpecifies the log flush mode.
LogLevelSpecifies the debug log level.
LogMaxEventCountSpecifies the maximum number of events to cache before further action is taken.
LogRotationModeSpecifies the log rotation mode.
MaxASN1BufferLengthSpecifies the maximal allowed length for ASN.1 primitive tag data.
MaxASN1TreeDepthSpecifies the maximal depth for processed ASN.1 trees.
OCSPHashAlgorithmSpecifies the hash algorithm to be used to identify certificates in OCSP requests.
UseOwnDNSResolverSpecifies whether the client classes should use own DNS resolver.
UseSharedSystemStoragesSpecifies whether the validation engine should use a global per-process copy of the system certificate stores.
UseSystemOAEPAndPSSEnforces or disables the use of system-driven RSA OAEP and PSS computations.
UseSystemRandomEnables or disables the use of the OS PRNG.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 Python Edition - Version 20.0 [Build 8154]