API published in: S60 3rd Ed
Link against: senservdesc.lib
Required Capabilities
NetworkServices ReadUserData WriteUserData
#include <msenproviderpolicy.h>
Inherited by CSenXmlServiceDescription.
The provider 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, provider 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 provider policy. Provider Policies are WSF wide settings, which are stored in WSF databases, and thus they are shared with all the actual Web Service Consumers (WSCs) accessing same services.
Example structure of ProviderPolicy XML fragment:
<ProviderPolicy> <Transport> <IapId> 1 </IapId> </Transport> <IdentityProviderIDs strict="true"> <IdentityProviderID> urn:first.id.example.com </IdentityProviderID> <IdentityProviderID> urn:second.id.example.com </IdentityProviderID> </IdentityProviderIDs> </ProviderPolicy>
Public Member Functions |
|
virtual void | SetIapIdL (TUint32 aIapId)=0 |
Setter for Internet Access Point (IAP) ID. |
|
virtual TInt | IapId (TUint32 &aCurrentIapId)=0 |
Getter for IAP ID. |
|
virtual void | SetIdentityProviderIdsL (CSenIdentityProviderIdArray8 &aList)=0 |
Setter for IdentityProvider IDs. |
|
virtual TInt | AddIdentityProviderIdL (TDesC8 &aProviderId)=0 |
Adds a new IdentityProviderID value at the end of the current list values. |
|
virtual TInt | RebuildFrom (MSenProviderPolicy &aTemplate)=0 |
Method reads provider policy class instance values from given template. |
|
virtual const CSenIdentityProviderIdArray8 & | IdentityProviderIds8L ()=0 |
Getter for IdentityProvider IDs. |
|
virtual TBool | Accepts (MSenProviderPolicy &aPolicyPattern)=0 |
Checks if some policy is accepted by current policy. |
|
Checks if some policy is accepted by current policy.
Implemented in CSenXmlServiceDescription. |
|
Adds a new IdentityProviderID value at the end of the current list values.
Implemented in CSenXmlServiceDescription. |
|
Getter for IAP ID.
Implemented in CSenXmlServiceDescription. |
|
Getter for IdentityProvider IDs.
Implemented in CSenXmlServiceDescription. |
|
Method reads provider policy class instance values from given template. Values may include an IAP ID, preferred IdentityProvider IDs etc.
Implemented in CSenXmlServiceDescription. |
|
Setter for Internet Access Point (IAP) ID. Method is used to define default access point to avoid IAP selection dialog prompt.
Implemented in CSenXmlServiceDescription. |
|
Setter for IdentityProvider IDs. Overrides current values with the given values from the array. When initiating a new service connection, this list of ProviderIDs define, which IdentityProviders are preferred OR which are strictly acceptable ones.
Implemented in CSenXmlServiceDescription. |