Secret.Value.new

function new(secret: String, length: Number(gssize), content_type: String): Secret.Value {
    // Gjs wrapper for secret_value_new()
}
  

Create a Secret.Value 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.

secret

the secret data

length

the length of the data

content_type

the content type of the data

Returns

the new Secret.Value