EDataServer.SourceSecurity¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c/en |
Security method |
||
r/w/en |
Secure the network connection |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class EDataServer.SourceSecurity(**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_method()¶
- Returns:
a newly-allocated copy of
EDataServer.SourceSecurity
:method
- Return type:
Thread-safe variation of
EDataServer.SourceSecurity.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.
- get_method()¶
- Returns:
the method used to establish a secure network connection
- Return type:
Returns the method used to establish a secure network connection to a remote account. There are no pre-defined method names; backends are free to set this however they wish. If a secure connection is not desired, the convention is to set
EDataServer.SourceSecurity
:method
to “none”.New in version 3.6.
- get_secure()¶
- Returns:
whether a secure network connection is desired
- Return type:
This is a convenience function which returns whether a secure network connection is desired, regardless of the method used. This relies on the convention of setting
EDataServer.SourceSecurity
:method
to “none” when a secure network connection is not desired.New in version 3.6.
- set_method(method)¶
-
Sets the method used to establish a secure network connection to a remote account. There are no pre-defined method names; backends are free to set this however they wish. If a secure connection is not desired, the convention is to set
EDataServer.SourceSecurity
:method
to “none”. In keeping with that convention,EDataServer.SourceSecurity
:method
will be set to “none” if method isNone
or an empty string.New in version 3.6.
- set_secure(secure)¶
- Parameters:
secure (
bool
) – whether a secure network connection is desired
This function provides a simpler way to set
EDataServer.SourceSecurity
:method
when using a secure network connection is a yes or no option and the exact method name is unimportant. If secure isFalse
, theEDataServer.SourceSecurity
:method
property is set to “none”. If secure isTrue
, the function assumes the backend will use Transport Layer Security and sets theEDataServer.SourceSecurity
:method
property to “tls”.New in version 3.6.
Property Details¶
- EDataServer.SourceSecurity.props.method¶
- Name:
method
- Type:
- Default Value:
'none'
- Flags:
Security method