API published in: S60 3rd Ed
Link against: senservdesc.lib
Required Capabilities
NetworkServices ReadUserData WriteUserData
#include <msenconsumerpolicy.h>
Inherited by CSenServicePattern.
The consumer policy sets the conditions in which some service provider is capable to operate in. It is defining context, through which these (possibly remote) services may be contacted and used. The actual properties may include transport layer settings, like predefined Internet Access Point (IAP) ID. In addition, consumer policy may declare, that certain service should only be contacted using certain identity provider (in ID-WSF). This can be achieved by mapping certain list of IDP IDs to a consumer policy. A consumer policy is effective only for a single session, and thus it applies to one service connection only. This means, that this policy information is "private", and not shared between different WSC applications using WSF, event hough they might be using the same (remote) service at the same time. Consumer policy properties are not serialized in any WSF database, but resides in memory only.
Example structure of ConsumerPolicy XML fragment:
<ConsumerPolicy> <Transport> <IapId> 2 </IapId> </Transport> <IdentityProviderIDs strict="false"> <IdentityProviderID> urn:first.example.idp.com </IdentityProviderID> <IdentityProviderID> urn:second.example.idp.com </IdentityProviderID> </IdentityProviderIDs> </ConsumerPolicy>
Public Member Functions |
|
virtual void | SetConsumerIapIdL (TUint32 aIapId)=0 |
Setter for Internet Access Point (IAP) ID existing in CommDB. |
|
virtual TInt | ConsumerIapId (TUint32 &aCurrentIapId)=0 |
Getter for IAP ID. |
|
virtual void | SetConsumerIdentityProviderIdsL (CSenIdentityProviderIdArray8 &aList)=0 |
Setter for consumer identity provider IDs. |
|
virtual TInt | AddConsumerIdentityProviderIdL (const TDesC8 &aProviderId)=0 |
Adds a new Identity provider ID value at the end of the current list values. |
|
virtual TInt | RebuildFromConsumerPolicy (MSenConsumerPolicy &aTemplate)=0 |
Rebuilds the consumer policy of this service pattern from the given consumer policy. |
|
virtual const CSenIdentityProviderIdArray8 & | ConsumerIdentityProviderIds8L ()=0 |
Getter for Identity provider IDs. |
|
virtual TBool | AcceptsConsumerPolicy (MSenConsumerPolicy &aPolicyPattern)=0 |
Checks if the policy of this service pattern accepts given policy. |
|
Checks if the policy of this service pattern accepts given policy.
Implemented in CSenServicePattern. |
|
Adds a new Identity provider ID value at the end of the current list values.
Implemented in CSenServicePattern. |
|
Getter for IAP ID.
Implemented in CSenServicePattern. |
|
Getter for Identity provider IDs.
Implemented in CSenServicePattern. |
|
Rebuilds the consumer policy of this service pattern from the given consumer policy.
Implemented in CSenServicePattern. |
|
Setter for Internet Access Point (IAP) ID existing in CommDB.
Implemented in CSenServicePattern. |
|
Setter for consumer identity provider IDs. Overrides current values with the given values from the array. If an ID does not exist, it will be added.
Implemented in CSenServicePattern. |