signon  8.50
SmackAccessControlManager Class Reference

Smack implementation of AbstractAccessControlManager ingroup Accounts_and_SSO_Framework. More...

#include <smack-access-control-manager.h>

List of all members.

Public Member Functions

 SmackAccessControlManager (QObject *parent=0)
 Constructs a SmackAccessControlManager object with the given parent.
 ~SmackAccessControlManager ()
 Destroys a SmackAccessControlManager object.
bool isPeerAllowedToAccess (const QDBusMessage &peerMessage, const QString &securityContext)
 Checks if a client process is allowed to access objects with a certain security context.
QString appIdOfPeer (const QDBusMessage &peerMessage)
 Looks up for the application identifier of a specific client process.
QString keychainWidgetAppId ()

Detailed Description

Smack implementation of AbstractAccessControlManager ingroup Accounts_and_SSO_Framework.

Definition at line 41 of file smack-access-control-manager.h.


Constructor & Destructor Documentation

SmackAccessControlManager::SmackAccessControlManager ( QObject *  parent = 0)

Constructs a SmackAccessControlManager object with the given parent.

Parameters:
parent

Definition at line 31 of file smack-access-control-manager.cpp.

SmackAccessControlManager::~SmackAccessControlManager ( )

Destroys a SmackAccessControlManager object.

Definition at line 36 of file smack-access-control-manager.cpp.


Member Function Documentation

QString SmackAccessControlManager::appIdOfPeer ( const QDBusMessage &  peerMessage)

Looks up for the application identifier of a specific client process.

Parameters:
peerMessage,therequest message sent over DBUS by the process.
Returns:
the application identifier of the process, or an empty string if none found.

Definition at line 63 of file smack-access-control-manager.cpp.

References TRACE.

bool SmackAccessControlManager::isPeerAllowedToAccess ( 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 is read or execute.

Parameters:
peerMessage,therequest message sent over DBUS by the process.
securityContext,thesecurityContext to be checked against.
Returns:
true, if the peer is allowed, false otherwise.

Definition at line 45 of file smack-access-control-manager.cpp.

References TRACE.

QString SmackAccessControlManager::keychainWidgetAppId ( )
Returns:
the application identifier of the keychain widget

Definition at line 40 of file smack-access-control-manager.cpp.


The documentation for this class was generated from the following files: