#include <ext/mw/wstoken.h>
Link against: wsaccountmanager.lib
class CWSToken : public CBase, public CBase |
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 void | SetCredential(CSenCredential2 *) |
IMPORT_C void | SetProperties(CSenXmlProperties *) |
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.
IMPORT_C CSenCredential2 * | Credential | ( | ) | const |
Gets credential
IMPORT_C CWSToken * | NewL | ( | ) | [static] |
Creates an object representing an empty token.
IMPORT_C CWSToken * | NewL | ( | CSenCredential2 * | apCredential, |
CSenXmlProperties * | apProperties | |||
) | [static] |
Creates an object representing an token.
Parameters | |
---|---|
apCredential | - credential |
apProperties | - properties for credential |
IMPORT_C CWSToken * | NewLC | ( | ) | [static] |
Creates an object representing an empty token.
IMPORT_C CWSToken * | NewLC | ( | CSenCredential2 * | apCredential, |
CSenXmlProperties * | apProperties | |||
) | [static] |
Creates an object representing an token.
Parameters | |
---|---|
apCredential | - credential |
apProperties | - properties for credential |
IMPORT_C CSenXmlProperties * | Properties | ( | ) | const |
Ges credential's properties