EDataServer.SourceAuthentication¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
A |
||
r/w/c/en |
What name to use for the authentication method in credentials for authentication |
||
r/w/c/en |
Host name for the remote account |
||
r/w/c/en |
Whether the authentication is done by another authentication manager (like any Single Sign On daemon) |
||
r/w/c/en |
Authentication method |
||
r/w/c/en |
Port number for the remote account |
||
r/w/c/en |
|
||
r/w/c/en |
Whether to offer to remember the password by default when prompted |
||
r/w/c/en |
User name for the remote account |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class EDataServer.SourceAuthentication(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Contains only private data that should be read and manipulated using the functions below.
Added in version 3.6.
- dup_credential_name()¶
- Returns:
a newly-allocated copy of
EDataServer.SourceAuthentication:credential-name- Return type:
Thread-safe variation of
EDataServer.SourceAuthentication.get_credential_name(). Use this function when accessing self from multiple threads.The returned string should be freed with
GLib.free() when no longer needed.Added in version 3.16.
- dup_host()¶
- Returns:
a newly-allocated copy of
EDataServer.SourceAuthentication:host- Return type:
Thread-safe variation of
EDataServer.SourceAuthentication.get_host(). Use this function when accessing self from multiple threads.The returned string should be freed with
GLib.free() when no longer needed.Added in version 3.6.
- dup_method()¶
- Returns:
a newly-allocated copy of
EDataServer.SourceAuthentication:method- Return type:
Thread-safe variation of
EDataServer.SourceAuthentication.get_method(). Use this function when accessing self from multiple threads.The returned string should be freed with
GLib.free() when no longer needed.Added in version 3.6.
- dup_proxy_uid()¶
- Returns:
a newly-allocated copy of
EDataServer.SourceAuthentication:proxy-uid- Return type:
Thread-safe variation of
EDataServer.SourceAuthentication.get_proxy_uid(). Use this function when accessing self from multiple threads.The returned string should be freed with
GLib.free() when no longer needed.Added in version 3.12.
- dup_user()¶
- Returns:
a newly-allocated copy of
EDataServer.SourceAuthentication:user- Return type:
Thread-safe variation of
EDataServer.SourceAuthentication.get_user(). Use this function when accessing self from multiple threads.The returned string should be freed with
GLib.free() when no longer needed.Added in version 3.6.
- get_credential_name()¶
-
Returns the credential name used to pass the stored or gathered credential (like password) into the
EDataServer.Source.invoke_authenticate(). This is a counterpart of the authentication method. TheNonemeans to use the default name, which isEDataServer.SOURCE_CREDENTIAL_PASSWORD.Added in version 3.16.
- get_host()¶
-
Returns the host name used to authenticate to a remote account.
Added in version 3.6.
- get_is_external()¶
- Returns:
Trueif the authentication is done by an external application,Falseotherwise- Return type:
Get if the authentication is done by an external application such as a Single Sign On application (e.g. GNOME Online Accounts)
Added in version 3.36.
- get_method()¶
-
Returns the authentication method for a remote account. There are no pre-defined method names; backends are free to set this however they wish. If authentication is not required for a remote account, the convention is to set
EDataServer.SourceAuthentication:methodto “none”.Added in version 3.6.
- get_port()¶
- Returns:
the port number of a remote account
- Return type:
Returns the port number used to authenticate to a remote account.
Added in version 3.6.
- get_proxy_uid()¶
- Returns:
the proxy profile
EDataServer.Source:uid- Return type:
Returns the
EDataServer.Source:uidof theEDataServer.Sourcethat holds network proxy settings for use when connecting to a remote account.Added in version 3.12.
- get_remember_password()¶
- Returns:
whether to offer to remember the password by default
- Return type:
Returns whether to offer to remember the provided password by default in password prompts. This way, if the user unchecks the option it will be unchecked by default in future password prompts.
Added in version 3.10.
- get_user()¶
-
Returns the user name used to authenticate to a remote account.
Added in version 3.6.
- ref_connectable()¶
- Returns:
a
Gio.SocketConnectable, orNone- Return type:
Returns a
Gio.SocketConnectableinstance constructed from self'sEDataServer.SourceAuthentication:hostandEDataServer.SourceAuthentication:portproperties, orNoneif theEDataServer.SourceAuthentication:hostis not set.The returned
Gio.SocketConnectableis referenced for thread-safety and must be unreferenced withGObject.Object.unref() when finished with it.Added in version 3.8.
- required()¶
- Returns:
whether authentication is required at all
- Return type:
This is a convenience function which returns whether authentication is required at all, regardless of the method used. This relies on the convention of setting
EDataServer.SourceAuthentication:methodto “none” when authentication is not required.Added in version 3.6.
- set_credential_name(credential_name)¶
-
Sets the credential name used to pass the stored or gathered credential (like password) into the
EDataServer.Source.invoke_authenticate(). This is a counterpart of the authentication method. TheNonemeans to use the default name, which isEDataServer.SOURCE_CREDENTIAL_PASSWORD.The internal copy of credential_name is automatically stripped of leading and trailing whitespace. If the resulting string is empty,
Noneis set instead.Added in version 3.16.
- set_host(host)¶
-
Sets the host name used to authenticate to a remote account.
The internal copy of host is automatically stripped of leading and trailing whitespace. If the resulting string is empty,
Noneis set instead.Added in version 3.6.
- set_is_external(is_external)¶
- Parameters:
is_external (
bool) –Trueif the authentication is done using an external application,Falseotherwise
Set if the authentication is done by an external application such as a Single Sign On application (e.g. GNOME Online Accounts)
Added in version 3.36.
- set_method(method)¶
-
Sets the authentication method for a remote account. There are no pre-defined method names; backends are free to set this however they wish. If authentication is not required for a remote account, the convention is to set the method to “none”. In keeping with that convention,
EDataServer.SourceAuthentication:methodwill be set to “none” if method isNoneor an empty string.Added in version 3.6.
- set_port(port)¶
- Parameters:
port (
int) – a port number
Sets the port number used to authenticate to a remote account.
Added in version 3.6.
- set_proxy_uid(proxy_uid)¶
- Parameters:
proxy_uid (
str) – the proxy profileEDataServer.Source:uid
Sets the
EDataServer.Source:uidof theEDataServer.Sourcethat holds network proxy settings for use when connecting to a remote account.Added in version 3.12.
- set_remember_password(remember_password)¶
- Parameters:
remember_password (
bool) – whether to offer to remember the password by default
Sets whether to offer to remember the provided password by default in password prompts. This way, if the user unchecks the option it will be unchecked by default in future password prompts.
Added in version 3.10.
Property Details¶
- EDataServer.SourceAuthentication.props.connectable¶
- Name:
connectable- Type:
- Default Value:
- Flags:
A
Gio.SocketConnectableconstructed from the host and port properties
- EDataServer.SourceAuthentication.props.credential_name¶
- Name:
credential-name- Type:
- Default Value:
- Flags:
What name to use for the authentication method in credentials for authentication
- EDataServer.SourceAuthentication.props.host¶
- Name:
host- Type:
- Default Value:
''- Flags:
Host name for the remote account
- EDataServer.SourceAuthentication.props.is_external¶
- Name:
is-external- Type:
- Default Value:
- Flags:
Whether the authentication is done by another authentication manager (like any Single Sign On daemon)
- EDataServer.SourceAuthentication.props.method¶
- Name:
method- Type:
- Default Value:
'none'- Flags:
Authentication method
- EDataServer.SourceAuthentication.props.port¶
- Name:
port- Type:
- Default Value:
0- Flags:
Port number for the remote account
- EDataServer.SourceAuthentication.props.proxy_uid¶
- Name:
proxy-uid- Type:
- Default Value:
'system-proxy'- Flags:
EDataServer.SourceUID of a proxy profile
- EDataServer.SourceAuthentication.props.remember_password¶
- Name:
remember-password- Type:
- Default Value:
- Flags:
Whether to offer to remember the password by default when prompted