CredentialsPrompter
Object Hierarchy:
Description:
[
CCode ( type_id =
"e_credentials_prompter_get_type ()" ) ]
[
Version ( since =
"3.16" ) ]
public class CredentialsPrompter :
Object,
Extensible
Contains only private data that should be read and manipulated using the functions below.
Content:
Properties:
Creation methods:
Methods:
- public bool get_auto_prompt ()
Returns, whether can respond to credential prompts automatically.
- public bool get_auto_prompt_disabled_for (Source source)
Returns whether the auto-prompt is disabled for the given source
.
- public unowned SourceCredentialsProvider get_provider ()
- public unowned SourceRegistry get_registry ()
- public bool loop_prompt_sync (Source source, CredentialsPrompterPromptFlags flags, CredentialsPrompterLoopPromptFunc func, Cancellable? cancellable = null) throws Error
Runs a credentials prompt loop for source, as long as the
func doesn't indicate that the provided credentials can be used to successfully authenticate against source
<!-- -->'s server, or that the func returns false.
- public void process_awaiting_credentials ()
Process all enabled sources with connection state
AWAITING_CREDENTIALS, like if
they just asked for its credentials for the first time.
- public bool process_source (Source source)
Continues a credential prompt for source.
- public async bool prompt (Source source, string? error_text, CredentialsPrompterPromptFlags flags, out Source? out_source, out NamedParameters? out_credentials) throws Error
Asks the this to prompt for
credentials, which are returned to the caller through callback, when available.
- public bool register_impl (string? authentication_method, CredentialsPrompterImpl prompter_impl)
Registers a prompter implementation for a given authentication method.
- public void set_auto_prompt (bool auto_prompt)
Sets whether can respond to credential prompts automatically.
- public void set_auto_prompt_disabled_for (Source source, bool is_disabled)
Sets whether the auto-prompt should be disabled for the given
source.
- public void unregister_impl (string? authentication_method, CredentialsPrompterImpl prompter_impl)
Unregisters previously registered prompter_impl for the
given autnetication_method with register_impl.
Signals:
- public virtual signal unowned Window? get_dialog_parent ()
Emitted when a new dialog will be shown, to get the right parent
window for it.
- public signal unowned Window? get_dialog_parent_full (Source? auth_source)
Emitted when a new dialog will be shown, to get the right parent
window for it.
Inherited Members:
All known members inherited from class GLib.Object
All known members inherited from interface E.Extensible