Value.this

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.

  1. this(SecretValue* secretValue, bool ownedRef)
  2. this(string secret, ptrdiff_t length, string contentType)
    class Value
    this
    (
    string secret
    ,
    ptrdiff_t length
    ,)
  3. this(string secret, ptrdiff_t length, string contentType, GDestroyNotify destroy)

Parameters

secret string

the secret data

length ptrdiff_t

the length of the data

contentType string

the content type of the data

Return Value

the new #SecretValue

Throws

ConstructionException GTK+ fails to create the object.

Meta