Snapd.Assertion¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
  | 
|
  | 
|
  | 
|
Virtual Methods¶
- Inherited:
 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w/co  | 
Assertion content  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Class Details¶
- class Snapd.Assertion(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
Snapd.Assertioncontains 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:
 
Create a new assertion.
New in version 1.0.
- get_body()¶
 - 
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
Noneif undefined.- Return type:
 
Get a header from an assertion.
New in version 1.0.