GtkVnc.Display.set_credential

### Method

# GtkVnc Displayset_credential

#### Declaration [src]

    gboolean
    vnc_display_set_credential (
      VncDisplay* obj,
      int type,
      const gchar* data
    )

#### Description [src]

Sets the value of the authentication credential `type` to the string `data`.

`type` is one of the VncConnectionCredential enum vlaues.

#### Parameters

`type` | `int`
| The authentication credential type.
`data` | `const gchar*`
| The value associated with the credential.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.

#### Return value

Returns: | `gboolean`
| TRUE if an error occurs, FALSE otherwise.