CWSToken Class Reference

#include <ext/mw/wstoken.h>

Link against: wsaccountmanager.lib

class CWSToken : public CBase, public CBase

Inherits from

Public Member Functions
~CWSToken()
IMPORT_C CSenCredential2 *Credential()
IMPORT_C CWSToken *NewL()
IMPORT_C CWSToken *NewL(CSenCredential2 *, CSenXmlProperties *)
IMPORT_C CWSToken *NewLC()
IMPORT_C CWSToken *NewLC(CSenCredential2 *, CSenXmlProperties *)
IMPORT_C CSenXmlProperties *Properties()
IMPORT_C voidSetCredential(CSenCredential2 *)
IMPORT_C voidSetProperties(CSenXmlProperties *)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()

Detailed Description

An Access Token refers to a tuple with information that is held by NCIM. The token binds an authenticated Nokia Account user session to a consumer and a service. An access token is presented by a consumer when it invokes a service. The service in turn dereferences the token at NCIM to obtain information about the authenticated user, the associated consumer key and the associated Token Secret. The token itself is not secret, and on its own should not be sufficient for resource access. Only if a consumer proves to have possession of the associated secret (e.g. messages are signed or encrypted by the secret) should Services consider granting access. Of course services may impose additional, service and user specific, conditions to resource access.

Constructor & Destructor Documentation

~CWSToken ( )

~CWSToken()

Destructor.

Member Function Documentation

Credential ( )

IMPORT_C CSenCredential2 *Credential()const

Gets credential

Return Value
a credential, ownership is not transferred.

NewL ( )

IMPORT_C CWSToken *NewL()[static]

Creates an object representing an empty token.

Return Value
a pointer to CWSToken class instance.

NewL ( CSenCredential2 *, CSenXmlProperties * )

IMPORT_C CWSToken *NewL(CSenCredential2 *apCredential,
CSenXmlProperties *apProperties
)[static]

Creates an object representing an token.

Parameters
apCredential- credential
apProperties- properties for credential
Return Value
a pointer to CWSToken class instance.

NewLC ( )

IMPORT_C CWSToken *NewLC()[static]

Creates an object representing an empty token.

Return Value
a pointer to CWSToken class instance.

NewLC ( CSenCredential2 *, CSenXmlProperties * )

IMPORT_C CWSToken *NewLC(CSenCredential2 *apCredential,
CSenXmlProperties *apProperties
)[static]

Creates an object representing an token.

Parameters
apCredential- credential
apProperties- properties for credential
Return Value
a pointer to CWSToken class instance.

Properties ( )

IMPORT_C CSenXmlProperties *Properties()const

Ges credential's properties

Return Value
a credential's properties, ownership is not transferred.

SetCredential ( CSenCredential2 * )

IMPORT_C voidSetCredential(CSenCredential2 *aCredential)

Sets credential's properties

Parameters
aCredential- credential

SetProperties ( CSenXmlProperties * )

IMPORT_C voidSetProperties(CSenXmlProperties *aXmlProperties)

Sets credential's properties

Parameters
aXmlProperties- a credential's properties