Fwupd.JcatBlob¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Fwupd.JcatBlob(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod flags_to_string(val)[source]¶
- Parameters:
val (
Fwupd.JcatBlobFlags) – value, e.g.Fwupd.JcatBlobFlags.IS_UTF8- Returns:
identifier string
- Return type:
Converts an enumerated value to a string.
New in version 2.1.3.
- classmethod kind_from_string(val)[source]¶
- Parameters:
- Returns:
enumerated value
- Return type:
Converts a string to an enumerated value.
New in version 2.1.3.
- classmethod kind_to_string(val)[source]¶
- Parameters:
val (
Fwupd.JcatBlobKind) – value, e.g.Fwupd.JcatBlobKind.SHA256- Returns:
identifier string
- Return type:
Converts an enumerated value to a string.
New in version 2.1.3.
- classmethod method_to_string(val)[source]¶
- Parameters:
val (
Fwupd.JcatBlobMethod) – value, e.g.Fwupd.JcatBlobMethod.CHECKSUM- Returns:
identifier string
- Return type:
Converts an enumerated value to a string.
New in version 2.1.3.
- classmethod new(kind, data, flags)[source]¶
- Parameters:
kind (
Fwupd.JcatBlobKind) –Fwupd.JcatBlobKind, e.g.Fwupd.JcatBlobKind.SHA256data (
GLib.Bytes) –GLib.Bytesflags (
Fwupd.JcatBlobFlags) –Fwupd.JcatBlobFlags
- Returns:
- Return type:
Creates a new blob.
New in version 2.1.3.
- classmethod new_utf8(kind, data)[source]¶
- Parameters:
kind (
Fwupd.JcatBlobKind) –Fwupd.JcatBlobKind, e.g.Fwupd.JcatBlobKind.SHA256data (
str) – ASCII data
- Returns:
- Return type:
Creates a new ASCII blob.
New in version 2.1.3.
- get_data()[source]¶
- Returns:
a
GLib.Bytes, orNoneif the filename was not found- Return type:
Gets the data stored in the blob, typically in binary (unprintable) form.
New in version 2.1.3.
- get_data_as_string()[source]¶
- Returns:
either UTF-8 text, or base64 encoded version of binary data
- Return type:
Gets the data stored in the blob, in human readable form.
New in version 2.1.3.
- get_timestamp()[source]¶
- Returns:
UTC UNIX time, or 0 if unset
- Return type:
Gets the creation timestamp for the blob.
New in version 2.1.3.
- set_target(target)[source]¶
- Parameters:
target (
Fwupd.JcatBlobKind) – aFwupd.JcatBlobKind, e.g.Fwupd.JcatBlobKind.SHA256
Sets the blob target.
New in version 2.1.3.