signon  8.42
MSSFAccessControlManager Class Reference

MSSF implementation of AbstractAccessControlManager. More...

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

Public Member Functions

 MSSFAccessControlManager (QObject *parent=0)
 Constructs a MSSFAccessControlManager object with the given parent.
 ~MSSFAccessControlManager ()
 Destroys a MSSFAccessControlManager 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

MSSF implementation of AbstractAccessControlManager.

Definition at line 39 of file mssf-access-control-manager.h.

Constructor & Destructor Documentation

MSSFAccessControlManager::MSSFAccessControlManager ( QObject *  parent = 0)

Constructs a MSSFAccessControlManager object with the given parent.

Parameters
parent

Definition at line 33 of file mssf-access-control-manager.cpp.

MSSFAccessControlManager::~MSSFAccessControlManager ( )

Destroys a MSSFAccessControlManager object.

Definition at line 38 of file mssf-access-control-manager.cpp.

Member Function Documentation

QString MSSFAccessControlManager::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 64 of file mssf-access-control-manager.cpp.

References SSO_AEGIS_PACKAGE_ID_TOKEN_PREFIX.

bool MSSFAccessControlManager::isPeerAllowedToAccess ( const QDBusMessage &  peerMessage,
const QString &  securityContext 
)

Checks if a client process is allowed to access objects with a certain security context.

The notion of access type doesn't exists in MSSF, instead only token possesion is checked.

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 47 of file mssf-access-control-manager.cpp.

References TRACE.

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

Definition at line 42 of file mssf-access-control-manager.cpp.


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