Compartir a través de


InMemoryCryptoProviderCache.GetCacheKey Method

Definition

Overloads

GetCacheKey(SignatureProvider)

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

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

protected override string GetCacheKey (Microsoft.IdentityModel.Tokens.SignatureProvider signatureProvider);
override this.GetCacheKey : Microsoft.IdentityModel.Tokens.SignatureProvider -> string
Protected Overrides Function GetCacheKey (signatureProvider As SignatureProvider) As String

Parameters

signatureProvider
SignatureProvider

the SignatureProvider to create the key for.

Returns

the cache key to use for finding a SignatureProvider.

Exceptions

if signatureProvider is null.

Applies to

GetCacheKey(SecurityKey, String, String)

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

protected override string GetCacheKey (Microsoft.IdentityModel.Tokens.SecurityKey securityKey, string algorithm, string typeofProvider);
override this.GetCacheKey : Microsoft.IdentityModel.Tokens.SecurityKey * string * string -> string
Protected Overrides Function GetCacheKey (securityKey As SecurityKey, algorithm As String, typeofProvider As String) As String

Parameters

securityKey
SecurityKey

the key that is used to by the crypto provider.

algorithm
String

the algorithm that is used by the crypto provider.

typeofProvider
String

the typeof the crypto provider obtained by calling object.GetType().

Returns

the cache key to use for finding a crypto provider.

Exceptions

if typeofProvider is null or empty string.

Applies to