IClientSecurity interface (objidl.h)

Gives the client control over the security settings for each individual interface proxy of an object.

Inheritance

The IClientSecurity interface inherits from the IUnknown interface. IClientSecurity also has these types of members:

Methods

The IClientSecurity interface has these methods.

 
IClientSecurity::CopyProxy

Makes a private copy of the proxy for the specified interface.
IClientSecurity::QueryBlanket

Retrieves authentication information the client uses to make calls on the specified proxy.
IClientSecurity::SetBlanket

Sets the authentication information (the security blanket) that will be used to make calls on the specified proxy.

Remarks

Every object has one proxy manager, and every proxy manager exposes the IClientSecurity interface automatically. Therefore, the client can query the proxy manager of an object for IClientSecurity, using any interface pointer on the object. If the QueryInterface call succeeds, the IClientSecurity pointer can be used to call an IClientSecurity method, passing a pointer to the interface proxy that the client is interested in. If a call to QueryInterface for IClientSecurity fails, either the object is implemented in-process or it is remoted by a custom marshaler that does not support security. (A custom marshaler can support security by offering the IClientSecurity interface to the client.)

The interface proxies passed as parameters to IClientSecurity methods must be from the same object as the IClientSecurity interface. That is, each object has a distinct IClientSecurity interface; calling IClientSecurity on one object and passing a proxy to another object will not work. Also, you cannot pass an interface to an IClientSecurity method if the interface does not use a proxy. This means that interfaces implemented locally by the proxy manager cannot be passed to IClientSecurity methods, except for IUnknown, which is the exception to this rule.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header objidl.h

See also

IMarshal

Security in COM

Setting Process-Wide Security with CoInitializeSecurity