gio.tls_password

Module for [TlsPassword] class

Types 3

An abstract interface representing a password used in TLS. Often used in user interaction such as unlocking a key storage token.

Methods
GType _gType() @property
TlsPassword self()Returns `this`, for use in `with` statements.
TlsPasswordGidBuilder builder()Get builder for [gio.tls_password.TlsPassword] Returns: New builder object
string description() @propertyGet `description` property. Returns: Description of what the password is for.
void description(string propval) @propertySet `description` property. Params: propval = Description of what the password is for.
gio.types.TlsPasswordFlags flags() @propertyGet `flags` property. Returns: Flags about the password.
void flags(gio.types.TlsPasswordFlags propval) @propertySet `flags` property. Params: propval = Flags about the password.
string warning() @propertyGet `warning` property. Returns: Warning about the password.
void warning(string propval) @propertySet `warning` property. Params: propval = Warning about the password.
string getDescription()Get a description string about what the password will be used for. Returns: The description of the password.
gio.types.TlsPasswordFlags getFlags()Get flags about the password. Returns: The flags about the password.
ubyte[] getValue()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 len...
string getWarning()Get a user readable translated warning. Usually this warning is a representation of the password flags returned from [gio.tls_password.TlsPassword.getFlags]. Returns: The warning.
void setDescription(string description)Set a description string about what the password will be used for.
void setFlags(gio.types.TlsPasswordFlags flags)Set flags about the password.
void setValue(ubyte[] value)Set the value for this password. The value will be copied by the password object.
void setValueFull(ubyte[] value, glib.types.DestroyNotify destroy = null)Provide the value for this password.
void setWarning(string warning)Set a user readable translated warning. Usually this warning is a representation of the password flags returned from [gio.tls_password.TlsPassword.getFlags].
Constructors
this(void * ptr, Flag!"Take" take)
this(gio.types.TlsPasswordFlags flags, string description)Create a new #GTlsPassword object.
Methods
T description(string propval)Set `description` property. Params: propval = Description of what the password is for. Returns: Builder instance for fluent chaining
T flags(gio.types.TlsPasswordFlags propval)Set `flags` property. Params: propval = Flags about the password. Returns: Builder instance for fluent chaining
T warning(string propval)Set `warning` property. Params: propval = Warning about the password. Returns: Builder instance for fluent chaining

Fluent builder for [gio.tls_password.TlsPassword]