IPWorks Encrypt 2020 Python Edition

Questions / Feedback?

on_encrypted_data_info Event

Fired once for each encrypted element when Decrypt is called.

Syntax

class XMLEncryptEncryptedDataInfoEventParams(object):
  @property
  def encrypted_data_id() -> str: ...
  @property
  def scope() -> int: ...
  @property
  def mime_type() -> str: ...

# In class XMLEncrypt:
@property
def on_encrypted_data_info() -> Callable[[XMLEncryptEncryptedDataInfoEventParams], None]: ...
@on_encrypted_data_info.setter
def on_encrypted_data_info(event_hook: Callable[[XMLEncryptEncryptedDataInfoEventParams], None]) -> None: ...

Remarks

This event fires once for each encrypted element in the XML document when decrypt is called. The parameters of this event provide information about the encrypted data. Additionally, the KeyName setting may be queried to identify the encryption key. symmetric_key may be set from within this event.

EncryptedDataId is the Id of the encrypted data (if any).

Scope indicates the scope of the encrypted data. This defines whether the entire XML element was encrypted, or only the content. Possible values are:

0Element
1Content

MIMEType holds the MIME type of the encrypted data (if any). For example: "image/png".

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