public override void Remove(SessionSecurityTokenCacheKey key)
 {
     if (key == null)
     {
         throw new ArgumentNullException("key");
     }
     inner.Remove(key);
     tokenCacheRepository.Remove(key.ToString());
 }
Esempio n. 2
0
        public override void Remove(SessionSecurityTokenCacheKey key)
        {
            // Completely removing from the memory cache is difficult, since either we have to forego memory caching or distribute the memory
            // cache (remove it on all nodes).
            // Since this cache is only intended for web scenarios, we assume that the client will purge the key, making the clearing
            // of the memory cache less essential.
            Log.DebugFormat("Removing token key {0} from local machine cache (it will still exist on any other nodes)", key);
            m_MemoryCache.Remove(key);

            Log.DebugFormat("Removing token key {0} from persistent store", key);
            var cacheKey = key;

            m_SessionSecurityTokenStore.RemoveTokenFromStore(cacheKey);
        }
Esempio n. 3
0
        public void RemoveContext(System.Xml.UniqueId contextId, System.Xml.UniqueId generation)
        {
            SessionSecurityTokenCacheKey key = new SessionSecurityTokenCacheKey(_claimsHandler.EndpointId, contextId, generation);

            _tokenCache.Remove(key);
        }
Esempio n. 4
0
 public void Remove(string endpointId, string contextId, string keyGeneration)
 {
     internalCache.Remove(new SessionSecurityTokenCacheKey(endpointId, GetContextId(contextId), GetKeyGeneration(keyGeneration)));
 }