Link against: SenServMgr.LIB
NetworkServices ReadUserData WriteUserData
#include <SenServiceManager.h>
The class is designed using abstract factory pattern: it only offers a instance (pointer) to the actual implementation class meeting this interface. Typically, service consumers use of CSenServiceManager to register service or identity based data, which is required for accessing some invocable, possibly remote service. The class is meant for both default frameworks offered by WSF and for any custom plug-in service invocation framework implementation. The default frameworks are: 1) Identity Based Web Services Framework (ID-WSF). 2) Basic Web Services Framework. For Basic Web Service consumer, the only applicable operations are Identity data managing methods. These can be used to make connection specific Basic Authentication (BASIC-AUTH) credentials available without later end-user interaction. Otherwise required authentication info will be requested via notifier dialog prompts. ID-WSF consumer has to use the CSenServiceManager methods to register authentication service description and identity provider (which are the same service in ID-WSF) and finally associate some actual service (contract to a WSP) to this IDP.
The current client-server framework implementation of CSenServiceManager is synchronous, although class inherits CActive for future extensions. So, the class instance will not be an active object handled by ActiveScheduler, and it does not have implementation in RunL() or DoCancel() methods.
Public Member Functions |
|
virtual TInt | ServiceDescriptionsL (const TDesC8 &aURI, RServiceDescriptionArray &aList)=0 |
Consumers use this to find services with matching URI (contract or endpoint) of the service. |
|
virtual TInt | ServiceDescriptionsL (MSenServiceDescription &aSD, RServiceDescriptionArray &aList)=0 |
Consumers use this to find services with matching service description. |
|
virtual TInt | RegisterServiceDescriptionL (MSenServiceDescription &aSD)=0 |
Used by consumer applications to register new service to WSF The service could not otherwise be discovered while creating
a service connection. |
|
virtual TInt | UnregisterServiceDescriptionL (MSenServiceDescription &aSD)=0 |
Used by consumer application to to inform the ServiceManager about a service which no longer is available. |
|
virtual TInt | RegisterIdentityProviderL (CSenIdentityProvider &aProvider)=0 |
Register an identity provider for the current active identity. |
|
virtual TInt | UnregisterIdentityProviderL (CSenIdentityProvider &aProvider)=0 |
Unregister an identity provider from the current active Identity. |
|
virtual TInt | AssociateServiceL (const TDesC8 &aURI, const TDesC8 &aProviderID)=0 |
Consumer applications use this method to associate some pre-registered service to certain (registered) identity provider.
|
|
virtual TInt | DissociateServiceL (const TDesC8 &aServiceID, const TDesC8 &aProviderID)=0 |
Dissociate a service from an identity provider. |
|
virtual TInt | CredentialsL (const TDesC8 &aEndpoint, RCredentialArray &aCredentials, RCredentialPropertiesArray &aCredentialProperties)=0 |
Consumer applications use this method for finding Credentials. |
|
virtual TInt | CredentialsL (const TDesC8 &aEndpoint, const CSenIdentityProvider &aIdP, RCredentialArray &aCredentials, RCredentialPropertiesArray &aCredentialProperties)=0 |
Consumer applications use this method for finding Credentials. |
|
virtual TInt | CredentialsL (const TDesC8 &aEndpoint, const TDesC8 &aUserName, const TDesC8 &aPassword, RCredentialArray &aCredentials, RCredentialPropertiesArray &aCredentialProperties)=0 |
Consumer applications use this method for finding Credentials. |
|
virtual TInt | CredentialsL (const MSenServiceDescription &aPattern, RCredentialArray &aCredentials, RCredentialPropertiesArray &aCredentialProperties)=0 |
Consumer applications use this method for finding Credentials. |
|
virtual TInt | CredentialsL (const MSenServiceDescription &aPattern, const CSenIdentityProvider &aIdP, RCredentialArray &aCredentials, RCredentialPropertiesArray &aCredentialProperties)=0 |
Consumer applications use this method for finding Credentials. |
|
virtual TInt | CredentialsL (const MSenServiceDescription &aPattern, const TDesC8 &aUserName, const TDesC8 &aPassword, RCredentialArray &aCredentials, RCredentialPropertiesArray &aCredentialProperties)=0 |
Consumer applications use this method for finding Credentials. |
|
virtual TInt | AddCredentialL (const TDesC8 &aEndpoint, const CSenIdentityProvider &aIdP, const CSenCredential2 &aCredential)=0 |
Consumer applications use this method for adding Credential. |
|
virtual TInt | AddCredentialL (const MSenServiceDescription &aPattern, const CSenIdentityProvider &aIdP, const CSenCredential2 &aCredential)=0 |
Consumer applications use this method for adding Credential. |
|
virtual TInt | AddCredentialL (const TDesC8 &aEndpoint, const CSenIdentityProvider &aIdP, const CSenCredential2 &aCredential, const CSenXmlProperties &aCredentialProperties)=0 |
Consumer applications use this method for adding Credential. |
|
virtual TInt | AddCredentialL (const MSenServiceDescription &aPattern, const CSenIdentityProvider &aIdP, const CSenCredential2 &aCredential, const CSenXmlProperties &aCredentialProperties)=0 |
Consumer applications use this method for adding Credential. |
|
virtual TInt | RemoveCredentialsL (const MSenServiceDescription &aPattern, const CSenIdentityProvider &aIdP)=0 |
Consumer applications use this method for removing Credentials. |
|
virtual TInt | RemoveCredentialsL (const CSenIdentityProvider &aIdP)=0 |
Consumer applications use this method for removing Credentials. |
|
virtual TInt | RemoveCredentialsL (const MSenServiceDescription &aPattern, const TDesC8 &aUserName, const TDesC8 &aPassword)=0 |
Consumer applications use this method for removing Credentials. |
|
Static Public Member Functions |
|
static IMPORT_C CSenServiceManager * | NewL () |
Two-phased constructor. |
|
static IMPORT_C CSenServiceManager * | NewLC () |
Two-phased constructor. |
|
static IMPORT_C CSenServiceManager * | NewL (MSenAuthenticationProvider &aAuthProvider) |
Two-phased constructor. |
|
static IMPORT_C CSenServiceManager * | NewLC (MSenAuthenticationProvider &aAuthProvider) |
Two-phased constructor. |
|
Protected Member Functions |
|
CSenServiceManager () | |
C++ default constructor. |
|
C++ default constructor. |
|
Consumer applications use this method for adding Credential.
Error codes: KErrBadDescriptor One of the parameters was invalid. KErrNotFound Given IdentityProvider was not found and because of that Credential could not be added. (Fix: Register IdentityProvider first and try to add Credential after that) Other error codes are system-wide Symbian error codes. |
|
Consumer applications use this method for adding Credential.
Other error codes are system-wide Symbian error codes. |
|
Consumer applications use this method for adding Credential.
Error codes: KErrBadDescriptor One of the parameters was invalid. KErrNotFound Given IdentityProvider was not found and because of that Credential could not be added. (Fix: Register IdentityProvider first and try to add Credential after that) Other error codes are system-wide Symbian error codes. |
|
Consumer applications use this method for adding Credential.
Other error codes are system-wide Symbian error codes. |
|
Consumer applications use this method to associate some pre-registered service to certain (registered) identity provider. The association adds the service ID (contract of the service that trusts this identity provider) into WSF identity database. In ID-WSF, consumers typically associate authentication service description with some identity provider. This way the ID-WSF framework can find the identity provider by using the contract of the service as a search pattern (for e.g. liberty AS contract).
|
|
Consumer applications use this method for finding Credentials.
Error codes: KErrNotFound Web Services framework couldn't find the Credentials using given Endpoint. KErrSenNoPermission Given IdentityProvider did not match for IdentityProvider which is related to found Credential. Other error codes are system-wide Symbian error codes. |
|
Consumer applications use this method for finding Credentials.
|
|
Consumer applications use this method for finding Credentials. IdentityProvider or Username and Password are given either via IdentityProviderL() callback or UsernameL() and Password() callbacks from MSenAuthenticationProvider (which can be given through specialized NewL or NewLC methods).
|
|
Consumer applications use this method for finding Credentials.
|
|
Consumer applications use this method for finding Credentials.
|
|
Consumer applications use this method for finding Credentials. IdentityProvider or Username and Password are given either via IdentityProviderL() callback or UsernameL() and Password() callbacks from MSenAuthenticationProvider (which can be given through specialized NewL or NewLC methods).
|
|
Dissociate a service from an identity provider.
|
|
Two-phased constructor. |
|
Two-phased constructor. |
|
Two-phased constructor. |
|
Two-phased constructor. |
|
Register an identity provider for the current active identity. It is required for both Basic Web Service and ID-WSF consumers that endpoint is defined in identity provider instance to make this data accessible later on while creating a service connection.
|
|
Used by consumer applications to register new service to WSF The service could not otherwise be discovered while creating a service connection. ID-WSF Authentication Service is an example of this kind of remote service. The Basic Web Service consumer does not need to and cannot register any service related data. In service description, the default framework ID is "ID-WSF", through which frameworks performing the actual registration are looked up. For any custom framework plug-in, the framework ID must be separately set. For ID-WSF service descriptions it is mandatory to set both contract and endpoint. Calling the method performs one of the following: 1. It registers a new service description 2. It updates an existing service description with matching contract and endpoint.
|
|
Consumer applications use this method for removing Credentials.
|
|
Consumer applications use this method for removing Credentials.
|
|
Consumer applications use this method for removing Credentials.
|
|
Consumers use this to find services with matching service description. The service description may include specific contract or endpoint of the service as a searching criteria. Contract is typically some URN and most endpoints are URLs. The Basic Web Service descriptions are not written into WSF database, so they cannot be searched using this method.
|
|
Consumers use this to find services with matching URI (contract or endpoint) of the service. ID-WSF consumers typically use the service type (contract) they are interested on. Contract is typically some URN and most endpoints are URLs. The Basic Web Service descriptions are not written into WSF database, so they cannot be searched using this method.
|
|
Unregister an identity provider from the current active Identity.
|
|
Used by consumer application to to inform the ServiceManager about a service which no longer is available. The ServiceManager will remove the service from its database as soon as it is no longer used.
|