Class

GioTlsPassword

Description [src]

class Gio.TlsPassword : GObject.Object {
  parent_instance: GObject,
  priv: GTlsPasswordPrivate*
}

Holds a password used in TLS.

Available since:2.30

Hierarchy

hierarchy this GTlsPassword ancestor_0 GObject ancestor_0--this

Ancestors

Constructors

g_tls_password_new

Create a new GTlsPassword object.

Instance methods

g_tls_password_get_description

Get a description string about what the password will be used for.

Available since: 2.30

g_tls_password_get_flags

Get flags about the password.

Available since: 2.30

g_tls_password_get_value

Get the password value. If length is not NULL then it will be filled in with the length of the password value. (Note that the password value is not nul-terminated, so you can only pass NULL for length in contexts where you know the password will have a certain fixed length.)

Available since: 2.30

g_tls_password_get_warning

Get a user readable translated warning. Usually this warning is a representation of the password flags returned from g_tls_password_get_flags().

Available since: 2.30

g_tls_password_set_description

Set a description string about what the password will be used for.

Available since: 2.30

g_tls_password_set_flags

Set flags about the password.

Available since: 2.30

g_tls_password_set_value

Set the value for this password. The value will be copied by the password object.

Available since: 2.30

g_tls_password_set_value_full

Provide the value for this password.

Available since: 2.30

g_tls_password_set_warning

Set a user readable translated warning. Usually this warning is a representation of the password flags returned from g_tls_password_get_flags().

Available since: 2.30

Methods inherited from GObject (43)

Properties

Gio.TlsPassword:description
No description available.
Gio.TlsPassword:flags
No description available.
Gio.TlsPassword:warning
No description available.

Signals

Signals inherited from GObject (1)

Class structure

struct GioTlsPasswordClass {
  GObjectClass parent_class;
  const guchar* (* get_value) (
    GTlsPassword* password,
    gsize* length
  );
  void (* set_value) (
    GTlsPassword* password,
    guchar* value,
    gssize length,
    GDestroyNotify destroy
  );
  const gchar* (* get_default_warning) (
    GTlsPassword* password
  );
  
}
Class members
parent_class
GObjectClass
  No description available.
get_value
const guchar* (* get_value) (
    GTlsPassword* password,
    gsize* length
  )
  No description available.
set_value
void (* set_value) (
    GTlsPassword* password,
    guchar* value,
    gssize length,
    GDestroyNotify destroy
  )
  No description available.
get_default_warning
const gchar* (* get_default_warning) (
    GTlsPassword* password
  )
  No description available.

Virtual methods

Gio.TlsPasswordClass.get_default_warning
No description available.
Gio.TlsPasswordClass.get_value

Get the password value. If length is not NULL then it will be filled in with the length of the password value. (Note that the password value is not nul-terminated, so you can only pass NULL for length in contexts where you know the password will have a certain fixed length.)

Available since: 2.30

Gio.TlsPasswordClass.set_value

Provide the value for this password.

Available since: 2.30