signon  8.42
mssf-access-control-manager.h
Go to the documentation of this file.
1 /*
2  * This file is part of signon
3  *
4  * Copyright (C) 2011 Intel Corporation.
5  *
6  * Contact: Elena Reshetova <elena.reshetova@intel.com>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public License
10  * version 2.1 as published by the Free Software Foundation.
11  *
12  * This library is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20  * 02110-1301 USA
21  */
28 #ifndef MSSF_ACCESS_CONTROL_MANAGER_H
29 #define MSSF_ACCESS_CONTROL_MANAGER_H
30 
31 #include <QDBusMessage>
32 #include <SignOn/AbstractAccessControlManager>
33 
39 class MSSFAccessControlManager: public SignOn::AbstractAccessControlManager
40 {
41  Q_OBJECT
42 
43 public:
48  MSSFAccessControlManager(QObject *parent = 0);
49 
54 
55  // reimplemented virtual methods
56 
66  bool isPeerAllowedToAccess(const QDBusMessage &peerMessage,
67  const QString &securityContext);
68 
75  QString appIdOfPeer(const QDBusMessage &peerMessage);
76 
80  QString keychainWidgetAppId();
81 };
82 
83 #endif // MSSF_ACCESS_CONTROL_MANAGER_H