make_password_sync


Description:

public string make_password_sync (string uuid, string name, uint timeout) throws Error

Turn a text item into a password item, or write a password's name and timeout

timeout is how long the password may stay on the clipboard once it is the active item: when it runs out the daemon selects the next non-password item, or clears the selection if the history holds none.

A text item is replaced by a password item, which is an item of its own, so what comes back is a new uuid; a password item is updated where it stands, so what comes back is the uuid that went in.

Parameters:

this

a Client instance

uuid

the uuid of the text item to turn into a password, or of the password item to update

name

the name to identify the password

timeout

how long it may stay on the clipboard, in seconds, or 0 for as long as anything else

Returns:

the uuid of the item this left in the history