Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​IdentityModel.​Tokens.​CryptoProviderCache

Assembly: Microsoft.IdentityModel.Tokens

Inheritance: object → CryptoProviderCache

Abstract definition of a cache for cryptographic providers.

Methods

protected string
GetCacheKey​(SignatureProvider signatureProvider)
Returns the cache key used to look up an entry for a <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> .
Returns The cache key used for finding a <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> .
signatureProvider The <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> to create the key for.
protected string
GetCacheKey​(SecurityKey securityKey, string algorithm, string typeofProvider)
Returns the cache key used to find a cryptographic provider in this cache.
Returns The cache key used for finding a cryptographic provider.
securityKey The key used by the cryptographic provider.
algorithm The algorithm used by the cryptographic provider.
typeofProvider The type of the cryptographic provider obtained by calling object.GetType().
public bool
TryAdd​(SignatureProvider signatureProvider)
Tries to add a <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> to this cache.
Returns True if the <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> was added; false if the cache already contained the <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> .
signatureProvider The <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> to cache.
public bool
TryGetSignatureProvider​(SecurityKey securityKey, string algorithm, string typeofProvider, bool willCreateSignatures, SignatureProvider& signatureProvider)
public bool
TryRemove​(SignatureProvider signatureProvider)
Tries to remove a <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> from this cache.
Returns True if the <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> was removed; false if the <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> was not found.
signatureProvider The <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> to remove.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object