Gjsify LogoGjsify Logo

A secret value, like a password or other binary secret.

record

Hierarchy

  • Value

Index

Constructors

  • 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.

    Parameters

    • secret: string

      the secret data

    • length: number

      the length of the data

    • contentType: string

      the content type of the data

    Returns SecretUnstable.Value

Properties

name: string

Methods

  • get(): Uint8Array
  • Get the secret data in the #SecretValue. The value is not necessarily null-terminated unless it was created with secret_value_new() or a null-terminated string was passed to secret_value_new_full().

    Returns Uint8Array

  • getContentType(): string
  • getText(): string
  • Get the secret data in the #SecretValue if it contains a textual value. The content type must be text/plain.

    Returns string

  • unref(): void
  • Unreference a #SecretValue. When the last reference is gone, then the value will be freed.

    Returns void

  • 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.

    Parameters

    • secret: string

      the secret data

    • length: number

      the length of the data

    • contentType: string

      the content type of the data

    Returns SecretUnstable.Value

  • Create a #SecretValue 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.

    Parameters

    • secret: string

      the secret data

    • length: number

      the length of the data

    • contentType: string

      the content type of the data

    • destroy: GLib.DestroyNotify

      function to call to free the secret data

    Returns SecretUnstable.Value

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method