Gcr.SshAskpass¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Interaction |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gcr.SshAskpass(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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
orNone
) – aGcr.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:
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 withGLib.spawn_sync
(),GLib.spawn_async
() orGLib.spawn_async_with_pipes
().
Property Details¶
- Gcr.SshAskpass.props.interaction¶
- Name:
interaction
- Type:
- Default Value:
- Flags:
The interaction used to prompt for passwords.