It derives from <GObject>.
An abstract interface representing a password used in TLS. Often used in user interaction such as unlocking a key storage token.
parent-instanceprivDescription of what the password is for.
Its value is a string, or #f.
Set it with (set! (tls-password:description self) value).
Flags about the password.
Its value is a <GTlsPasswordFlags> (or,
to set it, a list of its symbols, or one of them).
Set it with (set! (tls-password:flags self) value).
Warning about the password.
Its value is a string, or #f.
Set it with (set! (tls-password:warning self) value).
Get a description string about what the password will be used for.
Passed: a <GTlsPassword>.
a <GTlsPassword> object
Returned: a string.
The description of the password.
Get flags about the password.
Passed: a <GTlsPassword>.
a <GTlsPassword> object
Returned: a <GTlsPasswordFlags>.
The flags about the password.
Get the password value. If length is not #f 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 #f for
length in contexts where you know the password will have a certain
fixed length.)
Passed: a <GTlsPassword>.
a <GTlsPassword> object
Returned: a bytevector.
The password value (owned by the password object).
Not returned: it is the length of %return.
location to place the length of the password.
Get a user readable translated warning. Usually this warning is a
representation of the password flags returned from
tls-password:get-flags.
Passed: a <GTlsPassword>.
a <GTlsPassword> object
Returned: a string.
The warning.
Create a new <GTlsPassword> object.
Passed: a <GTlsPasswordFlags>, or a list
of its symbols, or one of them.
the password flags
Passed: a string.
description of what the password is for
Returned: a <GTlsPassword>.
The newly allocated password object
Set a description string about what the password will be used for.
Passed: a <GTlsPassword>.
a <GTlsPassword> object
Passed: a string.
The description of the password
Set flags about the password.
Passed: a <GTlsPassword>.
a <GTlsPassword> object
Passed: a <GTlsPasswordFlags>, or a list
of its symbols, or one of them.
The flags about the password
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.)
Passed: a <GTlsPassword>.
a <GTlsPassword> object
Passed: a bytevector, or a list or vector, each an unsigned 8-bit integer.
the new password value
Not passed: guile-gi gives the length of value.
the length of the password, or -1
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.)
Passed: a <GTlsPassword>.
a <GTlsPassword> object
Passed: a bytevector, or a list or vector, each an unsigned 8-bit integer.
the value for the password
Passed, or left out: a procedure, or #f.
a function to use to free the password.
See GDestroyNotify for how it is
called.
Not passed: guile-gi gives the length of value.
the length of the password, or -1
Set a user readable translated warning. Usually this warning is a
representation of the password flags returned from
tls-password:get-flags.
Passed: a <GTlsPassword>.
a <GTlsPassword> object
Passed: a string.
The user readable warning
virtual method for tls-password:get-warning if no value has been set using
tls-password:set-warning
To override it in a new class, give register-type #:vfuncs
`((get-default-warning . ,procedure)). The procedure is called as
(procedure self) ⇒ %return.
Passed: the class whose implementation to call:
<GTlsPassword>, or a class that derives from
it, or its GType number.
Passed: a <GTlsPassword>.
Returned: a string.
Get the password value. If length is not #f 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 #f for
length in contexts where you know the password will have a certain
fixed length.)
To override it in a new class, give register-type #:vfuncs
`((get-value . ,procedure)). The procedure is called as
(procedure self) ⇒ %return.
Passed: the class whose implementation to call:
<GTlsPassword>, or a class that derives from
it, or its GType number.
Passed: a <GTlsPassword>.
a <GTlsPassword> object
Returned: a bytevector.
The password value (owned by the password object).
Not returned: it is the length of %return.
location to place the length of the password.
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.)
To override it in a new class, give register-type #:vfuncs
`((set-value . ,procedure)). The procedure is called as
(procedure self value destroy).
Passed: the class whose implementation to call:
<GTlsPassword>, or a class that derives from
it, or its GType number.
Passed: a <GTlsPassword>.
a <GTlsPassword> object
Passed: a bytevector, or a list or vector, each an unsigned 8-bit integer.
the value for the password
Passed, or left out: a procedure, or #f.
a function to use to free the password.
See GDestroyNotify for how it is
called.
Not passed: guile-gi gives the length of value.
the length of the password, or -1