Camel.CipherValidity¶
Fields¶
| Name | Type | Access | Description | 
|---|---|---|---|
| children | GLib.Queue | r/w | |
| encrypt | object | r/w | |
| sign | object | r/w | 
Methods¶
| class | new() | 
| add_certinfo(mode, name, email) | |
| add_certinfo_ex(mode, name, email, cert_data, cert_data_free, cert_data_clone) | |
| clear() | |
| clone() | |
| envelope(valid) | |
| free() | |
| get_certinfo_property(mode, info_index, name) | |
| get_description() | |
| get_valid() | |
| init() | |
| set_certinfo_property(mode, info_index, name, value, value_free, value_clone) | |
| set_description(description) | |
| set_valid(valid) | 
Details¶
- 
class Camel.CipherValidity¶
- 
classmethod new()¶
- Return type: - Camel.CipherValidity
 - 
add_certinfo(mode, name, email)¶
- Parameters: - mode (Camel.CipherValidityMode) – aCamel.CipherValidityMode, where to add the additional certificate information
- name (str) – a name to add
- email (str) – an e-mail address to add
 - Returns: - Index of the added certinfo; -1 on error - Return type: - Add a cert info to the signer or encrypter info. 
- mode (
 - 
add_certinfo_ex(mode, name, email, cert_data, cert_data_free, cert_data_clone)¶
- Parameters: - mode (Camel.CipherValidityMode) – aCamel.CipherValidityMode, where to add the additional certificate information
- name (str) – a name to add
- email (str) – an e-mail address to add
- cert_data (objectorNone) – a certificate data, orNone
- cert_data_free (GLib.DestroyNotifyorNone) – a destroy function for cert_data; required, when cert_data is notNone
- cert_data_clone (Camel.CipherCloneFuncorNone) – a copy function for cert_data, to copy the data; required, when cert_data is notNone
 - Returns: - Index of the added certinfo; -1 on error - Return type: - Add a cert info to the signer or encrypter info, with extended data set. - New in version 2.30. 
- mode (
 - 
clear()¶
 - 
clone()¶
- Return type: - Camel.CipherValidity
 - 
envelope(valid)¶
- Parameters: - valid ( - Camel.CipherValidity) – a new- Camel.CipherValidityto conglomerate the self with- Calculate a conglomerate validity based on wrapping one secure - Camel.partinside another one.
 - 
free()¶
 - 
get_certinfo_property(mode, info_index, name)¶
- Parameters: - mode (Camel.CipherValidityMode) – which cipher validityCamel.partto use
- info_index (int) – a 0-based index of the requestedCamel.CipherCertInfo
- name (str) – a property name
 - Returns: - Value of a named property of a - Camel.CipherCertInfo, or- Nonewhen no such property exists. The returned value is owned by the associated- Camel.CipherCertInfoand is valid until the cert info is freed.- Return type: - Gets a named property name value for the given info_index of the mode validity - Camel.part.- New in version 3.22. 
- mode (
 - 
init()¶
 - 
set_certinfo_property(mode, info_index, name, value, value_free, value_clone)¶
- Parameters: - mode (Camel.CipherValidityMode) – which cipher validityCamel.partto use
- info_index (int) – a 0-based index of the requestedCamel.CipherCertInfo
- name (str) – a property name
- value (objectorNone) – a property value, orNone
- value_free (GLib.DestroyNotifyorNone) – a free function for the value
- value_clone (Camel.CipherCloneFuncorNone) – a clone function for the value
 - Sets a named property name value value for the given info_index of the mode validity - Camel.part. If the value is- None, then the property is removed. With a non-- Nonevalue also value_free and value_clone functions cannot be- None.- New in version 3.22. 
- mode (
 
- 
classmethod