Get the secret data in the Secret.Value.
The value is not necessarily null-terminated unless it was created with Value.new or a null-terminated string was passed to Value.new_full.
the secret data
Get the content type of the secret value, such as
text/plain.
the content type
Get the secret data in the Secret.Value if it contains a textual value.
The content type must be text/plain.
the value
Add another reference to the Secret.Value.
For each reference Value.unref should be called to unreference the value.
the value
Unreference a Secret.Value.
When the last reference is gone, then the value will be freed.
Unreference a Secret.Value and steal the secret data in Secret.Value as nonpageable memory.
the length of the secret
a new password string stored in nonpageable memory which must be freed with password_free when done
StaticnewStaticnew_
A value containing a secret
A Secret.Value contains a password or other secret value.
Use 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 Secret.Value has a content type. For passwords, this is
text/plain. Use Value.get_content_type to look at the content type.Secret.Value is reference counted and immutable. The secret data is only freed when all references have been released via Value.unref.