Secret.Value.new_full
function new_full(secret: String, length: Number(gssize), content_type: String, destroy: GLib.DestroyNotify): Secret.Value { // Gjs wrapper for secret_value_new_full() }
Create a Secret.Value 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.
- secret
the secret data
- length
the length of the data
- content_type
the content type of the data
- destroy
function to call to free the secret data
- Returns
the new Secret.Value