GMime.Signature

g GMime.Signature GMime.Signature GObject.Object GObject.Object GObject.Object->GMime.Signature

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_certificate ()

get_created ()

get_created64 ()

get_expires ()

get_expires64 ()

get_status ()

set_certificate (cert)

set_created (created)

set_expires (expires)

set_status (status)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

cert

GMime.Certificate

r

The GMime.Certificate used in the signature.

created

int

r

The creation date of the signature.

expires

int

r

The expiration date of the signature.

parent_object

GObject.Object

r

parent GObject.Object

status

GMime.SignatureStatus

r

A bitfield of GMime.SignatureStatus values.

Class Details

class GMime.Signature(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

GMime.SignatureClass

An object containing useful information about a signature.

classmethod new()
Returns:

a new GMime.Signature object.

Return type:

GMime.Signature

Creates a new GMime.Signature object.

get_certificate()
Returns:

the signature’s certificate.

Return type:

GMime.Certificate

Get the signature’s certificate.

get_created()
Returns:

the creation date of the signature or %-1 if unknown.

Return type:

int

Get the creation date of the signature.

get_created64()
Returns:

the creation date of the signature or %-1 if unknown.

Return type:

int

Get the creation date of the signature in seconds since the UNIX epoch, represented as a 64-bit signed integer.

get_expires()
Returns:

the expiration date of the signature or %-1 if unknown.

Return type:

int

Get the expiration date of the signature. A value of %0 means the signature never expires.

get_expires64()
Returns:

the expiration date of the signature or %-1 if unknown.

Return type:

int

Get the expiration date of the signature in seconds since the UNIX epoch, represented as a 64-bit signed integer. A value of %0 means the signature never expires.

get_status()
Returns:

the signature status.

Return type:

GMime.SignatureStatus

Get the signature status as a bitfield of GMime.SignatureStatus flags.

set_certificate(cert)
Parameters:

cert (GMime.Certificate) – a GMime.Certificate

Set the signature’s certificate.

set_created(created)
Parameters:

created (int) – creation date

Set the creation date of the signature.

set_expires(expires)
Parameters:

expires (int) – expiration date

Set the expiration date of the signature. A value of %0 means the signature never expires.

set_status(status)
Parameters:

status (GMime.SignatureStatus) – a GMime.SignatureStatus

Set the status on the signature.