WRT::SecSession Class Reference

#include <mw/cwrt/secsession.h>

Link against: secmgr.lib

class WRT::SecSession : public QObject, public QObject

Inherits from

  • WRT::SecSession
    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()
    boolisAllowed(const CapabilityList &)
    QString key()
    boolpersist()
    boolpersist(QByteArray &)
    voidsetClientInfo(const QString &, const QString &)
    voidsetClientName(const QString &)
    voidsetDisplayText(const QString &)
    voidsetUserHandler(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()

    Detailed Description

    This class represents a security manager client session Exported.

    Constructor & Destructor Documentation

    SecSession ( const QByteArray &, const QString &, const QString & )

    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 &, const QString &, UserConditionHandler * )

    SecSession(const QString &key,
    const QString &store,
    UserConditionHandler *handler = NULL
    )
    Constructor using the key of a previously persisted session
    Pre-condition
    A previous session must have been stored
    Parameters
    key- Key of previously persisted session
    store- Storage location for persisted sessions
    handler- User condition handler

    SecSession ( const QByteArray &, UserConditionHandler * )

    SecSession(const QByteArray &blob,
    UserConditionHandler *handler = NULL
    )

    SecSession ( const QString &, const QString &, const QString &, UserConditionHandler * )

    SecSession(const QString &policyFileName,
    const QString &trustDomain,
    const QString &secureStoreLocation,
    UserConditionHandler *handler = NULL
    )

    ~SecSession ( )

    ~SecSession()

    Destructor

    Member Function Documentation

    clientInfo ( )

    const QHash< QString, QString > &clientInfo()const

    Gets the client info hashlist

    Return Value
    The Client Info hash list

    clientName ( )

    QString clientName()const

    Retrieves the Client Name

    Return Value
    Client Name

    displayText ( )

    QString displayText()const

    Retrieves the display text

    Return Value
    Display text

    isAllowed ( const CapabilityList & )

    boolisAllowed(const CapabilityList &neededCaps)

    Checks whether the list of capabilities are allowed

    Parameters
    neededCaps- This list of capabilities needed by the caller
    Return Value
    TRUE if allowed, else FALSE

    key ( )

    QString key()const

    Generates a key for this session, to be used when sharing sessions

    See also: SecSession(const QString &aKey, const QString &aStore)

    Return Value
    The key for this policy

    persist ( )

    boolpersist()

    Persists the current session

    Return Value
    void

    persist ( QByteArray & )

    boolpersist(QByteArray &blob)

    setClientInfo ( const QString &, const QString & )

    voidsetClientInfo(const QString &key,
    const QString &value
    )

    Generic method to set any value in the client info list

    setClientName ( const QString & )

    voidsetClientName(const QString &clientName)

    Sets the name of client

    Parameters
    clientNameClient Name

    setDisplayText ( const QString & )

    voidsetDisplayText(const QString &text)

    Sets the display text of client

    Parameters
    textDisplay text

    setUserHandler ( UserConditionHandler * )

    voidsetUserHandler(UserConditionHandler *handler)const

    Sets the user condition handler to evaulate permissions

    Parameters
    handler- User Condition Handler
    Return Value
    void