~hkdb/geary/disco-3.34.1

« back to all changes in this revision

Viewing changes to src/engine/api/geary-credentials-mediator.vala

  • Committer: hkdb
  • Date: 2019-10-08 10:54:21 UTC
  • Revision ID: hkdb@3df.io-20191008105421-3dkwnpnhcamm77to
Tags: upstream-3.34.1-disco
ImportĀ upstreamĀ versionĀ 3.34.1-disco

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2016 Software Freedom Conservancy Inc.
 
3
 * Copyright 2018 Michael Gratton <mike@vee.net>
 
4
 *
 
5
 * This software is licensed under the GNU Lesser General Public License
 
6
 * (version 2.1 or later).  See the COPYING file in this distribution.
 
7
 */
 
8
 
 
9
/**
 
10
 * A store for authentication tokens.
 
11
 */
 
12
public interface Geary.CredentialsMediator : GLib.Object {
 
13
 
 
14
    /**
 
15
     * Updates the token for a service's credential from the store.
 
16
     *
 
17
     * Returns true if the token was present and loaded, else false.
 
18
     */
 
19
    public abstract async bool load_token(AccountInformation account,
 
20
                                          ServiceInformation service,
 
21
                                          GLib.Cancellable? cancellable)
 
22
        throws GLib.Error;
 
23
 
 
24
}