EDataServer.SourceCredentialsProviderImpl¶
- Subclasses:
EDataServer.SourceCredentialsProviderImplOAuth2,EDataServer.SourceCredentialsProviderImplPassword
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
|
|
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class EDataServer.SourceCredentialsProviderImpl(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Credentials provider implementation base structure. The descendants implement the virtual methods. The descendants are automatically registered into an
EDataServer.SourceCredentialsProvider.New in version 3.16.
- can_process(source)¶
- Parameters:
source (
EDataServer.Source) – anEDataServer.Source- Returns:
Whether the self can process credentials for the source.
- Return type:
Returns whether the self can process credentials for the source.
New in version 3.16.
- can_prompt()¶
- Returns:
Whether credential prompt can be done for the self.
- Return type:
Returns whether credential prompt can be done for the self.
New in version 3.16.
- can_store()¶
- Returns:
Whether the self can store credentials.
- Return type:
Returns whether the self can store credentials.
New in version 3.16.
- delete_sync(source, cancellable)¶
- Parameters:
source (
EDataServer.Source) – anEDataServer.Sourcecancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
- Raises:
- Returns:
- Return type:
Asks self to delete any stored credentials for source.
Default implementation returns
Falseand setsGio.IOErrorEnum.NOT_SUPPORTEDerror.If an error occurs, the function sets error and returns
False.New in version 3.16.
- get_provider()¶
- Returns:
- Return type:
Returns an
EDataServer.SourceCredentialsProviderwith which the self is associated.New in version 3.16.
- lookup_sync(source, cancellable)¶
- Parameters:
source (
EDataServer.Source) – anEDataServer.Sourcecancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
- Raises:
- Returns:
Trueon success,Falseon error- out_credentials:
an
EDataServer.NamedParametersto be set with stored credentials
- Return type:
(
bool, out_credentials:EDataServer.NamedParameters)
Asks self to lookup for stored credentials for source. The out_credentials is populated with them. If the result is not
None, then it should be freed withEDataServer.NamedParameters.free() when no longer needed.Default implementation returns
Falseand setsGio.IOErrorEnum.NOT_SUPPORTEDerror.If an error occurs, the function sets error and returns
False.New in version 3.16.
- store_sync(source, credentials, permanently, cancellable)¶
- Parameters:
source (
EDataServer.Source) – anEDataServer.Sourcecredentials (
EDataServer.NamedParameters) – anEDataServer.NamedParameterscontaining credentials to storepermanently (
bool) – whether to store credentials permanently, or for the current session onlycancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
- Raises:
- Returns:
- Return type:
Asks self to store credentials for source.
Default implementation returns
Falseand setsGio.IOErrorEnum.NOT_SUPPORTEDerror.If an error occurs, the function sets error and returns
False.New in version 3.16.
- do_can_process(source) virtual¶
- Parameters:
source (
EDataServer.Source) – anEDataServer.Source- Returns:
Whether the provider_impl can process credentials for the source.
- Return type:
Returns whether the provider_impl can process credentials for the source.
New in version 3.16.
- do_can_prompt() virtual¶
- Returns:
Whether credential prompt can be done for the provider_impl.
- Return type:
Returns whether credential prompt can be done for the provider_impl.
New in version 3.16.
- do_can_store() virtual¶
- Returns:
Whether the provider_impl can store credentials.
- Return type:
Returns whether the provider_impl can store credentials.
New in version 3.16.
- do_delete_sync(source, cancellable) virtual¶
- Parameters:
source (
EDataServer.Source) – anEDataServer.Sourcecancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
- Returns:
- Return type:
Asks provider_impl to delete any stored credentials for source.
Default implementation returns
Falseand setsGio.IOErrorEnum.NOT_SUPPORTEDerror.If an error occurs, the function sets error and returns
False.New in version 3.16.
- do_lookup_sync(source, cancellable) virtual¶
- Parameters:
source (
EDataServer.Source) – anEDataServer.Sourcecancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
- Returns:
Trueon success,Falseon error- out_credentials:
an
EDataServer.NamedParametersto be set with stored credentials
- Return type:
(
bool, out_credentials:EDataServer.NamedParameters)
Asks provider_impl to lookup for stored credentials for source. The out_credentials is populated with them. If the result is not
None, then it should be freed withEDataServer.NamedParameters.free() when no longer needed.Default implementation returns
Falseand setsGio.IOErrorEnum.NOT_SUPPORTEDerror.If an error occurs, the function sets error and returns
False.New in version 3.16.
- do_store_sync(source, credentials, permanently, cancellable) virtual¶
- Parameters:
source (
EDataServer.Source) – anEDataServer.Sourcecredentials (
EDataServer.NamedParameters) – anEDataServer.NamedParameterscontaining credentials to storepermanently (
bool) – whether to store credentials permanently, or for the current session onlycancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
- Returns:
- Return type:
Asks provider_impl to store credentials for source.
Default implementation returns
Falseand setsGio.IOErrorEnum.NOT_SUPPORTEDerror.If an error occurs, the function sets error and returns
False.New in version 3.16.