Create a #SecretValue for the secret data passed in.
The secret data is copied into non-pageable 'secure' memory.
If the length is less than zero, then secret
is assumed to be
null-terminated.
the secret data
the length of the data
the content type of the data
Get the secret data in the #SecretValue.
The value is not necessarily null-terminated unless it was created with
[ctorValue
.new] or a null-terminated string was passed to
[ctorValue
.new_full].
Get the content type of the secret value, such as
text/plain
.
Get the secret data in the #SecretValue if it contains a textual value.
The content type must be text/plain
.
Unreference a #SecretValue.
When the last reference is gone, then the value will be freed.
Unreference a #SecretValue and steal the secret data in #SecretValue as nonpageable memory.
the length of the secret
Create a #SecretValue for the secret data passed in.
The secret data is copied into non-pageable 'secure' memory.
If the length is less than zero, then secret
is assumed to be
null-terminated.
the secret data
the length of the data
the content type of the data
Create a #SecretValue for the secret data passed in.
The secret data is not copied, and will later be freed with the destroy
function.
If the length is less than zero, then secret
is assumed to be
null-terminated.
the secret data
the length of the data
the content type of the data
function to call to free the secret data
A value containing a secret
A #SecretValue contains a password or other secret value.
Use [method
Value
.get] to get the actual secret data, such as a password. The secret data is not necessarily null-terminated, unless the content type is "text/plain".Each #SecretValue has a content type. For passwords, this is
text/plain
. Use [methodValue
.get_content_type] to look at the content type.#SecretValue is reference counted and immutable. The secret data is only freed when all references have been released via [method
Value
.unref].