Top |
A SnapdAssertion represents an digitally signed documents that express a
fact or policy by a particular authority about a particular object in the
snap universe. Assertions can be queried using
snapd_client_get_assertions_sync()
. New assertions can be provided using
snapd_client_add_assertions_sync()
.
SnapdAssertion *
snapd_assertion_new (const gchar *content
);
Create a new assertion.
Since: 1.0
gchar * snapd_assertion_get_header (SnapdAssertion *assertion
,const gchar *name
);
Get a header from an assertion.
Since: 1.0
GStrv
snapd_assertion_get_headers (SnapdAssertion *assertion
);
Get the headers provided by this assertion.
Since: 1.0
gchar *
snapd_assertion_get_body (SnapdAssertion *assertion
);
Get the body of the assertion.
Since: 1.0
gchar *
snapd_assertion_get_signature (SnapdAssertion *assertion
);
Get the signature of the assertion.
Since: 1.0
typedef struct _SnapdAssertion SnapdAssertion;
SnapdAssertion contains information about a Snap assertion.
Assertions are digitally signed documents that allow Snaps to have secure trust and control features.
Since: 1.0
“content”
property“content” gchar *
Assertion content.
Flags: Read / Write / Construct Only
Default value: NULL