NMA4.CertChooser¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Grid (23), Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1), Gtk.Orientable (2)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)
Properties¶
- Inherited:
Gtk.Grid (5), Gtk.Widget (34), Gtk.Accessible (1), Gtk.Orientable (1)
Name |
Type |
Flags |
Short Description |
---|---|---|---|
w/co |
Certificate Chooser Flags |
||
w/co |
Certificate Chooser Title |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Emitted when the certificate password needs validation. |
|
Emitted when the certificate needs validation. |
|
Emitted when anything changes in the certificate chooser, be it a certificate, a key or associated passwords. |
|
Emitted when the key password needs validation. |
|
Emitted when the key needs validation. |
Fields¶
- Inherited:
Class Details¶
- class NMA4.CertChooser(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(title, flags)¶
- Parameters:
title (
str
) – title of the certificate chooser dialogflags (
NMA4.CertChooserFlags
) – the flags that configure the capabilities of the button
- Returns:
the certificate chooser button instance
- Return type:
Constructs the button that is capable of selecting a certificate and a key.
New in version 1.8.0.
- add_to_size_group(group)¶
- Parameters:
group (
Gtk.SizeGroup
) – a size group
Adds the labels to the specified size group so that they are aligned nicely with other entries in a form.
It is expected that the
NMA4.CertChooser
is aGtk.Grid
with two columns with the labels in the first one.New in version 1.8.0.
- get_cert()¶
- Returns:
the certificate path
- scheme:
the scheme of the returned certificate path
- Return type:
(
str
orNone
, scheme:NM.Setting8021xCKScheme
)
Gets the real certificate location from the chooser button along with the scheme.
New in version 1.8.0.
- get_cert_password()¶
- Returns:
the certificate PIN or password
- Return type:
Obtains the password or a PIN that was be required to access the certificate.
New in version 1.8.0.
- get_cert_password_flags()¶
- Returns:
secret flags corresponding to the certificate password
- Return type:
Returns secret flags corresponding to the certificate password if one is present. The chooser would typically call into
NMA4.utils_menu_to_secret_flags
() for the certificate password entry.New in version 1.8.0.
- get_cert_uri()¶
-
Gets the real certificate URI from the chooser button along with the scheme.
New in version 1.8.0.
- get_key()¶
- Returns:
the key path
- scheme:
the scheme of the returned key path
- Return type:
(
str
orNone
, scheme:NM.Setting8021xCKScheme
)
Gets the real key location from the chooser button along with the scheme.
New in version 1.8.0.
- get_key_password()¶
- Returns:
the key PIN or password
- Return type:
Obtains the password or a PIN that was be required to access the key.
New in version 1.8.0.
- get_key_password_flags()¶
- Returns:
secret flags corresponding to the key password
- Return type:
Returns secret flags corresponding to the key password if one is present. The chooser would typically call into
NMA4.utils_menu_to_secret_flags
() for the key password entry.New in version 1.8.0.
- get_key_uri()¶
-
Gets the real key URI from the chooser button along with the scheme.
New in version 1.8.0.
- set_cert(value, scheme)¶
- Parameters:
value (
str
) – the path or URI of a certificatescheme (
NM.Setting8021xCKScheme
) – the scheme of the certificate path
Sets the certificate location for the chooser button.
New in version 1.8.0.
- set_cert_password(password)¶
- Parameters:
password (
str
) – the certificate PIN or password
Sets the password or a PIN that might be required to access the certificate.
New in version 1.8.0.
- set_cert_uri(uri)¶
- Parameters:
uri (
str
) – the path or URI of a certificate
Sets the certificate URI for the chooser button.
New in version 1.8.0.
- set_key(value, scheme)¶
- Parameters:
value (
str
) – the path or URI of a keyscheme (
NM.Setting8021xCKScheme
) – the scheme of the key path
Sets the key location for the chooser button.
New in version 1.8.0.
- set_key_password(password)¶
- Parameters:
password (
str
) – the key PIN or password
Sets the password or a PIN that might be required to access the key.
New in version 1.8.0.
- set_key_uri(uri)¶
- Parameters:
uri (
str
) – the URI of a key
Sets the key URI for the chooser button.
New in version 1.8.0.
- setup_cert_password_storage(initial_flags, setting, password_flags_name, with_not_required, ask_mode)¶
- Parameters:
initial_flags (
NM.SettingSecretFlags
) – initial secret flags to setup password menu fromsetting (
NM.Setting
) –NM.Setting
containing the password, orNone
password_flags_name (
str
) – name of the secret flags (like psk-flags), orNone
with_not_required (
bool
) – whether to include “Not required” menu item
This method basically calls
NMA4.utils_setup_password_storage
() on the certificate password entry, in case one is present.New in version 1.8.0.
- setup_key_password_storage(initial_flags, setting, password_flags_name, with_not_required, ask_mode)¶
- Parameters:
initial_flags (
NM.SettingSecretFlags
) – initial secret flags to setup password menu fromsetting (
NM.Setting
) –NM.Setting
containing the password, orNone
password_flags_name (
str
) – name of the secret flags (like psk-flags), orNone
with_not_required (
bool
) – whether to include “Not required” menu item
This method basically calls
NMA4.utils_setup_password_storage
() on the key password entry, in case one is present.New in version 1.8.0.
- update_cert_password_storage(secret_flags, setting, password_flags_name)¶
- Parameters:
secret_flags (
NM.SettingSecretFlags
) – secret flags to setsetting (
NM.Setting
) –NM.Setting
containing the password, orNone
password_flags_name (
str
) – name of the secret flags (like psk-flags), orNone
This method basically calls
NMA4.utils_update_password_storage
() on the certificate password entry, in case one is present.New in version 1.8.0.
- update_key_password_storage(secret_flags, setting, password_flags_name)¶
- Parameters:
secret_flags (
NM.SettingSecretFlags
) – secret flags to setsetting (
NM.Setting
) –NM.Setting
containing the password, orNone
password_flags_name (
str
) – name of the secret flags (like psk-flags), orNone
This method basically calls
NMA4.utils_update_password_storage
() on the key password entry, in case one is present.New in version 1.8.0.
- validate()¶
- Raises:
- Returns:
- Return type:
Validates whether the chosen values make sense. The users can do further validation by subscribing to the “*-changed” signals and returning an error themselves.
New in version 1.8.0.
Signal Details¶
- NMA4.CertChooser.signals.cert_password_validate(cert_chooser)¶
- Signal Name:
cert-password-validate
- Flags:
- Parameters:
cert_chooser (
NMA4.CertChooser
) – The object which received the signal- Return type:
Emitted when the certificate password needs validation. The handlers can indicate that the password is invalid by returning an error, which blocks further signal processing and causes a call to
NMA4.CertChooser.validate
() to fail.New in version 1.8.0.
- NMA4.CertChooser.signals.cert_validate(cert_chooser)¶
- Signal Name:
cert-validate
- Flags:
- Parameters:
cert_chooser (
NMA4.CertChooser
) – The object which received the signal- Return type:
Emitted when the certificate needs validation. The handlers can indicate that the certificate is invalid by returning an error, which blocks further signal processing and causes a call to
NMA4.CertChooser.validate
() to fail.New in version 1.8.0.
- NMA4.CertChooser.signals.changed(cert_chooser)¶
- Signal Name:
changed
- Flags:
- Parameters:
cert_chooser (
NMA4.CertChooser
) – The object which received the signal
Emitted when anything changes in the certificate chooser, be it a certificate, a key or associated passwords.
New in version 1.8.0.
- NMA4.CertChooser.signals.key_password_validate(cert_chooser)¶
- Signal Name:
key-password-validate
- Flags:
- Parameters:
cert_chooser (
NMA4.CertChooser
) – The object which received the signal- Return type:
Emitted when the key password needs validation. The handlers can indicate that the password is invalid by returning an error, which blocks further signal processing and causes a call to
NMA4.CertChooser.validate
() to fail.New in version 1.8.0.
- NMA4.CertChooser.signals.key_validate(cert_chooser)¶
- Signal Name:
key-validate
- Flags:
- Parameters:
cert_chooser (
NMA4.CertChooser
) – The object which received the signal- Return type:
Emitted when the key needs validation. The handlers can indicate that the key is invalid by returning an error, which blocks further signal processing and causes a call to
NMA4.CertChooser.validate
() to fail.New in version 1.8.0.
Property Details¶
- NMA4.CertChooser.props.flags¶
- Name:
flags
- Type:
- Default Value:
0
- Flags:
Certificate Chooser Flags
- NMA4.CertChooser.props.title¶
- Name:
title
- Type:
- Default Value:
- Flags:
Certificate Chooser Title