Class: Gio::TlsPassword

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Overview

Class structure for GTls::Password.

Instance Method Summary collapse

Constructor Details

#initialize(flags, description) ⇒ Gio::TlsPassword

Create a new GTls::Password object.

Parameters:

  • flags (Gio::TlsPasswordFlags)

    the password flags

  • description (String)

    description of what the password is for

Instance Method Details

#descriptionString

Description of what the password is for.

Returns:

  • (String)

    description

#description=(description) ⇒ String

Description of what the password is for.

Parameters:

  • description (String)

Returns:

  • (String)

    description

  • (String)

    description

#flagsGio::TlsPasswordFlags

Flags about the password.

Returns:

#flags=(flags) ⇒ Gio::TlsPasswordFlags

Flags about the password.

Parameters:

Returns:

#get_value(length) ⇒ Array<Integer>

Get the password value. If length is not nil 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 nil for length in contexts where you know the password will have a certain fixed length.)

Parameters:

  • length (Integer)

    location to place the length of the password.

Returns:

  • (Array<Integer>)

    The password value (owned by the password object).

#set_value(value, length) ⇒ nil

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

Specify the length, for a non-nul-terminated password. Pass -1 as length if using a nul-terminated password, and length will be calculated automatically. (Note that the terminating nul is not considered part of the password in this case.)

Parameters:

  • value (Array<Integer>)

    the new password value

  • length (Gio::gssize)

    the length of the password, or -1

Returns:

  • (nil)

#set_value_full(value, length, destroy) ⇒ nil

Provide the value for this password.

The value will be owned by the password object, and later freed using the destroy function callback.

Specify the length, for a non-nul-terminated password. Pass -1 as length if using a nul-terminated password, and length will be calculated automatically. (Note that the terminating nul is not considered part of the password in this case.)

Parameters:

  • value (Array<Integer>)

    the value for the password

  • length (Gio::gssize)

    the length of the password, or -1

  • destroy (GLib::DestroyNotify)

    a function to use to free the password.

Returns:

  • (nil)

#warningString

Warning about the password.

Returns:

  • (String)

    warning

#warning=(warning) ⇒ String

Warning about the password.

Parameters:

  • warning (String)

Returns:

  • (String)

    warning

  • (String)

    warning