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.
New 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.New 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.New 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.New 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.New 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.New 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. TheNone
means to use the default name, which isEDataServer.SOURCE_CREDENTIAL_PASSWORD
.New in version 3.16.
- get_host()¶
-
Returns the host name used to authenticate to a remote account.
New in version 3.6.
- get_is_external()¶
- Returns:
True
if the authentication is done by an external application,False
otherwise- Return type:
Get if the authentication is done by an external application such as a Single Sign On application (e.g. GNOME Online Accounts)
New 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
:method
to “none”.New 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.
New in version 3.6.
- get_proxy_uid()¶
- Returns:
the proxy profile
EDataServer.Source
:uid
- Return type:
Returns the
EDataServer.Source
:uid
of theEDataServer.Source
that holds network proxy settings for use when connecting to a remote account.New 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.
New in version 3.10.
- get_user()¶
-
Returns the user name used to authenticate to a remote account.
New in version 3.6.
- ref_connectable()¶
- Returns:
a
Gio.SocketConnectable
, orNone
- Return type:
Returns a
Gio.SocketConnectable
instance constructed from self'sEDataServer.SourceAuthentication
:host
andEDataServer.SourceAuthentication
:port
properties, orNone
if theEDataServer.SourceAuthentication
:host
is not set.The returned
Gio.SocketConnectable
is referenced for thread-safety and must be unreferenced withGObject.Object.unref
() when finished with it.New 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
:method
to “none” when authentication is not required.New 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. TheNone
means 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,
None
is set instead.New 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,
None
is set instead.New in version 3.6.
- set_is_external(is_external)¶
- Parameters:
is_external (
bool
) –True
if the authentication is done using an external application,False
otherwise
Set if the authentication is done by an external application such as a Single Sign On application (e.g. GNOME Online Accounts)
New 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
:method
will be set to “none” if method isNone
or an empty string.New in version 3.6.
- set_port(port)¶
- Parameters:
port (
int
) – a port number
Sets the port number used to authenticate to a remote account.
New in version 3.6.
- set_proxy_uid(proxy_uid)¶
- Parameters:
proxy_uid (
str
) – the proxy profileEDataServer.Source
:uid
Sets the
EDataServer.Source
:uid
of theEDataServer.Source
that holds network proxy settings for use when connecting to a remote account.New 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.
New in version 3.10.
Property Details¶
- EDataServer.SourceAuthentication.props.connectable¶
- Name:
connectable
- Type:
- Default Value:
- Flags:
A
Gio.SocketConnectable
constructed 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.Source
UID 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