This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Assembly: Microsoft.Office.Interop.UccApi (in microsoft.office.interop.uccapi.dll)
IUccCredentialCache is the default interface of the UccCredentialCache class. This class cannot be co-created and must be obtained from the CredentialCache property of the server signaling settings interface. The credential cache is primarily used to provide a SIP server with local user credentials at the time a local endpoint is registered with the server. The credential cache can hold a credential for each security realm a local user is interested in signing in to. A local user can create a single credential to apply to all security realms by specifying the realm of "*" when adding a credential to a cache.
Win32 COM/C++ Syntax
interface IUccCredentialCache : IUnknown
To obtain a UccCredentialCache instance, a client must first create:
An UccUriManager factory object.
A platform class instance.
An endpoint created by the platform.
A server signaling settings interface from the endpoint.
The following example obtains a new instance of the co-creatable platform class. This platform class instance is used to create a reference to an IUccEndpoint interface. The endpoint interface is the source of an IUccServerSignalingSettings interface which, in turn exposes a CredentialCache property that returns a reference to a UccCredentialCache instance
//UriManager factory object is created IUccUriManager _UriManager = new UccUriManagerClass(); //UccUri is obtained from UriManager and represents local user UccUri meUri = _UriManager.ParseUri("firstname.lastname@example.org"); //UccPlatform coclass is instantiated UccPlatform platform = new UccPlatformClass(); platform.Initialize("sampleUCCPClient", null); //local user endpoint is obtained from the platform IUccEndpoint endpoint = platform.CreateEndpoint( UCC_ENDPOINT_TYPE.UCCET_PRINCIPAL_SERVER_BASED, meUri, null, null); //server signaling settings interface is obtained from the new endpoint IUccServerSignalingSettings SignalingSettings = endpoint as IUccServerSignalingSettings; //credential cache interface reference is obtained UccCredentialCache credentialCache = SignalingSettings.CredentialCache;