Camel.CipherValidity¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
children |
r/w |
||
encrypt |
r/w |
||
sign |
r/w |
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Camel.CipherValidity¶
- classmethod new()¶
- Return type:
- add_certinfo(mode, name, email)¶
- Parameters:
mode (
Camel.CipherValidityMode
) – aCamel.CipherValidityMode
, where to add the additional certificate informationname (
str
) – a name to addemail (
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.
- 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 informationname (
str
) – a name to addemail (
str
) – an e-mail address to addcert_data_free (
GLib.DestroyNotify
orNone
) – a destroy function for cert_data; required, when cert_data is notNone
cert_data_clone (
Camel.CipherCloneFunc
orNone
) – 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.
- clear()¶
- clone()¶
- Return type:
- envelope(valid)¶
- Parameters:
valid (
Camel.CipherValidity
) – a newCamel.CipherValidity
to conglomerate the self with
Calculate a conglomerate validity based on wrapping one secure
Camel.part
inside another one.
- free()¶
- get_certinfo_property(mode, info_index, name)¶
- Parameters:
mode (
Camel.CipherValidityMode
) – which cipher validityCamel.part
to useinfo_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
, orNone
when no such property exists. The returned value is owned by the associatedCamel.CipherCertInfo
and 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.
- init()¶
- set_certinfo_property(mode, info_index, name, value, value_free, value_clone)¶
- Parameters:
mode (
Camel.CipherValidityMode
) – which cipher validityCamel.part
to useinfo_index (
int
) – a 0-based index of the requestedCamel.CipherCertInfo
name (
str
) – a property namevalue_free (
GLib.DestroyNotify
orNone
) – a free function for the valuevalue_clone (
Camel.CipherCloneFunc
orNone
) – 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 isNone
, then the property is removed. With a non-None
value also value_free and value_clone functions cannot beNone
.New in version 3.22.