Snapd.Assertion

g GObject.Object GObject.Object Snapd.Assertion Snapd.Assertion GObject.Object->Snapd.Assertion

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (content)

get_body ()

get_header (name)

get_headers ()

get_signature ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

content

str

r/w/co

Assertion content

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Snapd.Assertion(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Snapd.AssertionClass

Snapd.Assertion contains information about a Snap assertion.

Assertions are digitally signed documents that allow Snaps to have secure trust and control features.

New in version 1.0.

classmethod new(content)
Parameters:

content (str) – the text content of the assertion.

Returns:

a new Snapd.Assertion

Return type:

Snapd.Assertion

Create a new assertion.

New in version 1.0.

get_body()
Returns:

assertion body or None.

Return type:

str or None

Get the body of the assertion.

New in version 1.0.

get_header(name)
Parameters:

name (str) – name of the header.

Returns:

header value or None if undefined.

Return type:

str or None

Get a header from an assertion.

New in version 1.0.

get_headers()
Returns:

array of header names.

Return type:

[str]

Get the headers provided by this assertion.

New in version 1.0.

get_signature()
Returns:

assertion signature.

Return type:

str

Get the signature of the assertion.

New in version 1.0.

Property Details

Snapd.Assertion.props.content
Name:

content

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Assertion content