Compartir a través de


InMemoryCryptoProviderCache Class

Definition

Defines a cache for crypto providers. Current support is limited to SignatureProvider only.

public class InMemoryCryptoProviderCache : Microsoft.IdentityModel.Tokens.CryptoProviderCache, IDisposable
type InMemoryCryptoProviderCache = class
    inherit CryptoProviderCache
    interface IDisposable
Public Class InMemoryCryptoProviderCache
Inherits CryptoProviderCache
Implements IDisposable
Inheritance
InMemoryCryptoProviderCache
Implements

Constructors

InMemoryCryptoProviderCache()

Creates a new instance of InMemoryCryptoProviderCache using the default CryptoProviderCacheOptions.

InMemoryCryptoProviderCache(CryptoProviderCacheOptions)

Creates a new instance of InMemoryCryptoProviderCache using the specified cryptoProviderCacheOptions.

Methods

Dispose()

Calls Dispose(Boolean) and SuppressFinalize(Object) Note: the EventBasedLRUCache is no longer being disposed of, but since this is a public class and can be used as base class of custom cache implementations, we need to keep it as some implementations may override Dispose().

Dispose(Boolean)

If disposing is true, this method disposes of Microsoft.IdentityModel.Tokens.InMemoryCryptoProviderCache._signingSignatureProviders and Microsoft.IdentityModel.Tokens.InMemoryCryptoProviderCache._verifyingSignatureProviders.

GetCacheKey(SecurityKey, String, String)

Returns the 'key' that will be used to find a crypto provider in this cache.

GetCacheKey(SignatureProvider)

Returns the cache key to use when looking up an entry into the cache for a SignatureProvider

TryAdd(SignatureProvider)

Trys to adds a SignatureProvider to this cache.

TryGetSignatureProvider(SecurityKey, String, String, Boolean, SignatureProvider)

Trys to find a SignatureProvider to this cache.

TryRemove(SignatureProvider)

Trys to remove a SignatureProvider from this cache.

Applies to