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(void* ptr, Flag!"Take" take)
  2. this(string secret, ptrdiff_t length, string contentType)
    class Value
    this
    (
    string secret
    ,
    ptrdiff_t length
    ,)

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