SignOn::AbstractAccessControlManager Class
Helps filtering incoming Signon Daemon requests, based on security privileges of the client processes. More...
- Header:
#include <SignOn/AbstractAccessControlManager> - Inherits: QObject
List of all members, including inherited members
Public Functions
- AbstractAccessControlManager(QObject *parent = 0)
- ~AbstractAccessControlManager()
- QString appIdOfPeer(const QDBusConnection &peerConnection, const QDBusMessage &peerMessage)
- SignOn::AccessReply *handleRequest(const SignOn::AccessRequest &request)
- bool isPeerAllowedToAccess(const QDBusConnection &peerConnection, const QDBusMessage &peerMessage, const QString &securityContext)
- QString keychainWidgetAppId()
Detailed Description
Member Function Documentation
[explicit] AbstractAccessControlManager::AbstractAccessControlManager(QObject *parent = 0)
Constructs a AbstractAccessControlManager object with the given parent.
[virtual noexcept] AbstractAccessControlManager::~AbstractAccessControlManager()
Destructor.
[virtual] QString AbstractAccessControlManager::appIdOfPeer(const QDBusConnection &peerConnection, const QDBusMessage &peerMessage)
Looks up for the application identifier of a specific client process. peerConnection is the connection over which the message was sent, and peerMessage the request message sent over DBUS by the process.
Returns the application identifier of the process, or an empty string if none found.
[virtual] SignOn::AccessReply *AbstractAccessControlManager::handleRequest(const SignOn::AccessRequest &request)
Asynchronously handle an access request from a client; request describes the requested access.
Returns an AccessReply object which can be used to obtain the asynchronous reply.
[virtual] bool AbstractAccessControlManager::isPeerAllowedToAccess(const QDBusConnection &peerConnection, const QDBusMessage &peerMessage, const QString &securityContext)
Checks if a client process is allowed to access objects with a certain security context. The access type to be checked depends on the concrete implementation of this function.
peerConnection is the connection over which the message was sent, peerMessage the request message sent over DBUS by the process, and securityContext the security context to be checked against.
Returns true, if the peer is allowed, false otherwise.
[virtual] QString AbstractAccessControlManager::keychainWidgetAppId()
Returns the application identifier of the keychain widget