Gcr.SshAskpass

g GObject.Object GObject.Object Gcr.SshAskpass Gcr.SshAskpass GObject.Object->Gcr.SshAskpass

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

child_setup (askpass)

class

new (interaction)

get_interaction ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

interaction

Gio.TlsInteraction

r/w/co

Interaction

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Gcr.SshAskpass(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Gcr.SshAskpassClass

When used as the setup function while spawning an ssh command like ssh-add or ssh, this allows callbacks for passwords on the provided interaction.

classmethod child_setup(askpass)[source]
Parameters:

askpass (object or None) – a Gcr.SshAskpass object

Use this function as a callback setup function passed to GLib.spawn_sync(), GLib.spawn_async(), GLib.spawn_async_with_pipes().

classmethod new(interaction)[source]
Parameters:

interaction (Gio.TlsInteraction) – the interaction to use for prompting paswords

Returns:

A new Gcr.SshAskpass object

Return type:

Gcr.SshAskpass

Create a new Gcr.SshAskpass object which can be used to spawn an ssh command and prompt for any necessary passwords.

Use the Gcr.SshAskpass.child_setup() function as a callback with GLib.spawn_sync(), GLib.spawn_async() or GLib.spawn_async_with_pipes().

get_interaction()[source]
Returns:

the interaction

Return type:

Gio.TlsInteraction

Get the interaction associated with this object.

Property Details

Gcr.SshAskpass.props.interaction
Name:

interaction

Type:

Gio.TlsInteraction

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The interaction used to prompt for passwords.