ILogonTokenCacheManager 接口
定义
此接口使应用程序能够根据要求清除 Windows 令牌缓存。This interface enables an application to clear the Windows token cache on demand.
public interface class ILogonTokenCacheManager
public interface ILogonTokenCacheManager
type ILogonTokenCacheManager = interface
Public Interface ILogonTokenCacheManager
注解
如果没有此接口,就无法移除 Windows 令牌,该令牌通过使用 Windows 登录令牌缓存中的消息所提供的用户名和密码进行登录来获取。Without this interface, there is no way to remove Windows tokens obtained by logging on with the user name and password supplied with the message from the Windows logon tokens cache. 当应用程序需要通过注销其协定来注销用户时,无法从系统中移除该用户的所有跟踪:表示该用户的 Windows 缓存令牌会一直保留在内存中,直到其生存时间过期并且从缓存中移除该令牌。When an application needs to log off a user by providing a logoff operation on its contract, there is no way to remove all traces of the user from the system: the cached Windows token that represents the user is held in the memory until its time-to-live expires and the token is removed from the cache.
方法
| FlushLogonTokenCache() |
移除登录缓存中所有令牌。Removes all tokens from the logon cache. |
| RemoveCachedLogonToken(String) |
移除登录缓存中指定的令牌。Removes the specified token from the logon cache. |