Fwupd.SecurityAttr – fwupd Reference Manual
Packages
fwupd
Fwupd
SecurityAttr
flag_from_string
flag_to_string
flag_to_suffix
result_from_string
result_to_string
SecurityAttr
add_flag
add_guid
add_guids
add_metadata
add_obsolete
copy
get_appstream_id
get_bios_setting_current_value
get_bios_setting_id
get_bios_setting_target_value
get_created
get_description
get_flags
get_fwupd_version
get_guids
get_kernel_current_value
get_kernel_target_value
get_level
get_metadata
get_name
get_obsoletes
get_plugin
get_result
get_result_fallback
get_result_success
get_title
get_url
has_flag
has_guid
has_obsolete
remove_flag
set_appstream_id
set_bios_setting_current_value
set_bios_setting_id
set_bios_setting_target_value
set_created
set_description
set_flags
set_fwupd_version
set_kernel_current_value
set_kernel_target_value
set_level
set_name
set_plugin
set_result
set_result_fallback
set_result_success
set_title
set_url
SecurityAttr
Object Hierarchy:
Description:
[
CCode
( type_id =
"fwupd_security_attr_get_type ()"
) ]
public
class
SecurityAttr
:
Object
,
Codec
A Host Security ID attribute that represents something that was measured.
Namespace:
Fwupd
Package:
fwupd
Content:
Static methods:
public
static
SecurityAttrFlags
flag_from_string
(
string
? flag)
Converts a string to an enumerated flag.
public
static
unowned
string
flag_to_string
(
SecurityAttrFlags
val)
Converts an enumerated value to a string.
public
static
unowned
string
flag_to_suffix
(
SecurityAttrFlags
flag)
Returns the string suffix for the flag.
public
static
SecurityAttrResult
result_from_string
(
string
? result)
Converts a string to an enumerated result.
public
static
unowned
string
result_to_string
(
SecurityAttrResult
val)
Converts an enumerated value to a string.
Creation methods:
public
SecurityAttr
(
string
? appstream_id)
Creates a new security attribute.
Methods:
public
void
add_flag
(
SecurityAttrFlags
flag)
Adds a specific attribute flag to the attribute.
public
void
add_guid
(
string
guid)
Adds a device GUID to the attribute.
public
void
add_guids
(
GenericArray
<
string
> guids)
Adds device GUIDs to the attribute.
public
void
add_metadata
(
string
key,
string
? value)
Adds metadata to the attribute which may be used in the name.
public
void
add_obsolete
(
string
appstream_id)
Adds an attribute appstream_id to obsolete.
public
SecurityAttr
copy
()
Makes a full (deep) copy of a security attribute.
public
unowned
string
get_appstream_id
()
Gets the AppStream ID.
public
unowned
string
get_bios_setting_current_value
()
Gets the current value of the BIOS setting that can be changed.
public
unowned
string
get_bios_setting_id
()
Gets the
BiosSetting
that can be used to improve this
SecurityAttr
.
public
unowned
string
get_bios_setting_target_value
()
Gets the value that when written to an attribute would activate it or satisfy a security requirement.
public
uint64
get_created
()
Gets when the attribute was created.
public
unowned
string
get_description
()
Gets the attribute description which is a few lines of prose that normal users will understand.
public
SecurityAttrFlags
get_flags
()
Gets the self flags.
public
unowned
string
get_fwupd_version
()
Gets the fwupd version the attribute was added.
public
unowned
GenericArray
<
string
>
get_guids
()
Gets the list of attribute GUIDs.
public
unowned
string
get_kernel_current_value
()
Gets the current value of the BIOS setting that can be changed.
public
unowned
string
get_kernel_target_value
()
Gets the target value of the kernel setting that can be changed.
public
SecurityAttrLevel
get_level
()
Gets the HSI level.
public
unowned
string
?
get_metadata
(
string
key)
Gets private metadata from the attribute which may be used in the name.
public
unowned
string
get_name
()
Gets the attribute name.
public
unowned
GenericArray
<
string
>
get_obsoletes
()
Gets the list of attribute obsoletes.
public
unowned
string
get_plugin
()
Gets the plugin that created the attribute.
public
SecurityAttrResult
get_result
()
Gets the optional HSI result.
public
SecurityAttrResult
get_result_fallback
()
Gets the optional fallback HSI result.
public
SecurityAttrResult
get_result_success
()
Gets the desired HSI result.
public
unowned
string
get_title
()
Gets the attribute title, which is typically a two word title.
public
unowned
string
get_url
()
Gets the attribute URL.
public
bool
has_flag
(
SecurityAttrFlags
flag)
Finds if the attribute has a specific attribute flag.
public
bool
has_guid
(
string
guid)
Finds out if a specific GUID was added to the attribute.
public
bool
has_obsolete
(
string
appstream_id)
Finds out if the attribute obsoletes a specific appstream_id.
public
void
remove_flag
(
SecurityAttrFlags
flag)
Removes a specific attribute flag from the attribute.
public
void
set_appstream_id
(
string
? appstream_id)
Sets the AppStream ID.
public
void
set_bios_setting_current_value
(
string
? value)
Sets the current value of the BIOS setting that can be changed.
public
void
set_bios_setting_id
(
string
? id)
Sets the
BiosSetting
that can be used to improve this
SecurityAttr
.
public
void
set_bios_setting_target_value
(
string
? value)
Sets the string used for the target value of an attribute.
public
void
set_created
(
uint64
created)
Sets when the attribute was created.
public
void
set_description
(
string
? description)
Sets the attribute description.
public
void
set_flags
(
SecurityAttrFlags
flags)
Sets the attribute flags.
public
void
set_fwupd_version
(
string
? fwupd_version)
Sets the fwupd version the attribute was added.
public
void
set_kernel_current_value
(
string
? value)
Sets the current value of the BIOS setting that can be changed.
public
void
set_kernel_target_value
(
string
? value)
Sets the target value of the kernel setting that can be changed.
public
void
set_level
(
SecurityAttrLevel
level)
Sets the HSI level.
public
void
set_name
(
string
? name)
Sets the attribute name.
public
void
set_plugin
(
string
? plugin)
Sets the plugin that created the attribute.
public
void
set_result
(
SecurityAttrResult
result)
Sets the optional HSI result.
public
void
set_result_fallback
(
SecurityAttrResult
result)
Sets the optional fallback HSI result.
public
void
set_result_success
(
SecurityAttrResult
result)
Sets the desired HSI result.
public
void
set_title
(
string
? title)
Sets the attribute title.
public
void
set_url
(
string
? url)
Sets the attribute result.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface Fwupd.Codec
add_json
add_string
add_variant
array_from_variant
array_to_json
array_to_variant
from_json
from_json_string
from_variant
json_append
json_append_bool
json_append_int
json_append_map
json_append_strv
string_append
string_append_bool
string_append_hex
string_append_int
string_append_size
string_append_time
to_json
to_json_string
to_string
to_variant