WAC::TrustSession Class Reference

#include <mw/wac/wactrustsession.h>

class WAC::TrustSession
Public Member Functions
TrustSession()
TrustSession(const QString &)
~TrustSession()
QString domainFor(TrustCriteriaType, const QString &)
QString domainFor(const QString &, const QString &)
boolsetPolicyFile(const QString &)
boolsetPolicyFile(const QByteArray &)

Detailed Description

This class represents a trust manager client session

Constructor & Destructor Documentation

TrustSession ( )

TrustSession()

Default Constructor

TrustSession ( const QString & )

TrustSession(const QString &policy)

Constructor with a policy file

~TrustSession ( )

~TrustSession()

Destructor

Member Function Documentation

domainFor ( TrustCriteriaType, const QString & )

QString domainFor(TrustCriteriaTypetype,
const QString &value
)

Gets the domain for a specified value

Parameters
type- Type of domain
value- Value to get the domain for
Return Value
The requested domain

domainFor ( const QString &, const QString & )

QString domainFor(const QString &name,
const QString &value
)

Gets the domain for a specified value

Parameters
name- Name of the type
value- Value to get the domain for
Return Value
The requested domain

setPolicyFile ( const QString & )

boolsetPolicyFile(const QString &policy)

Sets the policy file

Parameters
policyFilename of the policy file
Return Value
TRUE if the policy file is valid, else FALSE

setPolicyFile ( const QByteArray & )

boolsetPolicyFile(const QByteArray &policy)

Sets the policy file in memory

Parameters
policyThe policy file read into memory as a QByteArray
Return Value
TRUE if the policy file is valid, else FALSE