#include <mw/cwrt/secsession.h>
Link against: secmgr.lib
| class WRT::SecSession : public QObject, public QObject |
| Public Member Functions | |
|---|---|
| SecSession(const QByteArray &, const QString &, const QString &) | |
| SecSession(const QString &, const QString &, UserConditionHandler *) | |
| SecSession(const QByteArray &, UserConditionHandler *) | |
| SecSession(const QString &, const QString &, const QString &, UserConditionHandler *) | |
| ~SecSession() | |
| const QHash< QString, QString > & | clientInfo() |
| QString | clientName() |
| QString | displayText() |
| bool | isAllowed(const CapabilityList &) |
| QString | key() |
| bool | persist() |
| bool | persist(QByteArray &) |
| void | setClientInfo(const QString &, const QString &) |
| void | setClientName(const QString &) |
| void | setDisplayText(const QString &) |
| void | setUserHandler(UserConditionHandler *) |
| Inherited Attributes | |
|---|---|
| QObject::d_ptr | |
| QObject::objectName | |
| QObject::staticQtMetaObject | |
| Inherited Functions | |
|---|---|
| QObject::QObject(QObjectPrivate &,QObject *) | |
| QObject::blockSignals(bool) | |
| QObject::childEvent(QChildEvent *) | |
| QObject::children()const | |
| QObject::connect(const QObject *,const QMetaMethod &,const QObject *,const QMetaMethod &,Qt::ConnectionType) | |
| QObject::connect(const QObject *,const char *,const QObject *,const char *,Qt::ConnectionType) | |
| QObject::connect(const QObject *,const char *,const char *,Qt::ConnectionType)const | |
| QObject::connectNotify(const char *) | |
| QObject::customEvent(QEvent *) | |
| QObject::deleteLater | |
| QObject::destroyed | |
| QObject::disconnect(const QObject *,const QMetaMethod &,const QObject *,const QMetaMethod &) | |
| QObject::disconnect(const QObject *,const char *) | |
| QObject::disconnect(const QObject *,const char *,const QObject *,const char *) | |
| QObject::disconnect(const char *,const QObject *,const char *) | |
| QObject::disconnectNotify(const char *) | |
| QObject::dumpObjectInfo() | |
| QObject::dumpObjectTree() | |
| QObject::dynamicPropertyNames()const | |
| QObject::event(QEvent *) | |
| QObject::eventFilter(QObject *,QEvent *) | |
| QObject::findChild(const QString &)const | |
| QObject::findChildren(const QRegExp &)const | |
| QObject::findChildren(const QString &)const | |
| QObject::inherits(const char *)const | |
| QObject::installEventFilter(QObject *) | |
| QObject::isWidgetType()const | |
| QObject::killTimer(int) | |
| QObject::moveToThread(QThread *) | |
| QObject::objectName()const | |
| QObject::parent()const | |
| QObject::property(const char *)const | |
| QObject::receivers(const char *)const | |
| QObject::registerUserData() | |
| QObject::removeEventFilter(QObject *) | |
| QObject::sender()const | |
| QObject::senderSignalIndex()const | |
| QObject::setObjectName(const QString &) | |
| QObject::setParent(QObject *) | |
| QObject::setProperty(const char *,const QVariant &) | |
| QObject::setUserData(uint,QObjectUserData *) | |
| QObject::signalsBlocked()const | |
| QObject::startTimer(int) | |
| QObject::thread()const | |
| QObject::timerEvent(QTimerEvent *) | |
| QObject::userData(uint)const | |
| QObject::~QObject() | |
This class represents a security manager client session Exported.
| SecSession | ( | const QByteArray & | policy, |
| const QString & | domain, | ||
| const QString & | store | ||
| ) | |||
Constructor
| Parameters | |
|---|---|
| policy | - Policy file in memory |
| domain | - Domain name |
| store | - Storage location for persistence |
| SecSession | ( | const QString & | key, |
| const QString & | store, | ||
| UserConditionHandler * | handler = NULL | ||
| ) | |||
| Parameters | |
|---|---|
| key | - Key of previously persisted session |
| store | - Storage location for persisted sessions |
| handler | - User condition handler |
| SecSession | ( | const QByteArray & | blob, |
| UserConditionHandler * | handler = NULL | ||
| ) | |||
| SecSession | ( | const QString & | policyFileName, |
| const QString & | trustDomain, | ||
| const QString & | secureStoreLocation, | ||
| UserConditionHandler * | handler = NULL | ||
| ) | |||
| const QHash< QString, QString > & | clientInfo | ( | ) | const |
Gets the client info hashlist
| bool | isAllowed | ( | const CapabilityList & | neededCaps | ) |
Checks whether the list of capabilities are allowed
| Parameters | |
|---|---|
| neededCaps | - This list of capabilities needed by the caller |
| QString | key | ( | ) | const |
Generates a key for this session, to be used when sharing sessions
See also: SecSession(const QString &aKey, const QString &aStore)
| bool | persist | ( | QByteArray & | blob | ) |
| void | setClientInfo | ( | const QString & | key, |
| const QString & | value | |||
| ) | ||||
Generic method to set any value in the client info list
| void | setClientName | ( | const QString & | clientName | ) |
Sets the name of client
| Parameters | |
|---|---|
| clientName | Client Name |
| void | setDisplayText | ( | const QString & | text | ) |
Sets the display text of client
| Parameters | |
|---|---|
| text | Display text |
| void | setUserHandler | ( | UserConditionHandler * | handler | ) | const |
Sets the user condition handler to evaulate permissions
| Parameters | |
|---|---|
| handler | - User Condition Handler |