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:
Returns:

Index of the added certinfo; -1 on error

Return type:

int

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:
Returns:

Index of the added certinfo; -1 on error

Return type:

int

Add a cert info to the signer or encrypter info, with extended data set.

New in version 2.30.

clear()
clone()
Return type:

Camel.CipherValidity

envelope(valid)
Parameters:

valid (Camel.CipherValidity) – a new Camel.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:
Returns:

Value of a named property of a Camel.CipherCertInfo, or None when no such property exists. The returned value is owned by the associated Camel.CipherCertInfo and is valid until the cert info is freed.

Return type:

object or None

Gets a named property name value for the given info_index of the mode validity Camel.part.

New in version 3.22.

get_description()
Return type:

str

get_valid()
Return type:

bool

init()
set_certinfo_property(mode, info_index, name, value, value_free, value_clone)
Parameters:

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-None value also value_free and value_clone functions cannot be None.

New in version 3.22.

set_description(description)
Parameters:

description (str) –

set_valid(valid)
Parameters:

valid (bool) –