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.

interface Microsoft.​IdentityModel.​Tokens.​ICryptoProvider

Assembly: Microsoft.IdentityModel.Tokens

Provides extensibility for cryptographic operators. If custom operators are needed, <see cref="P:Microsoft.IdentityModel.Tokens.CryptoProviderFactory.CustomCryptoProvider" /> can be set to return these operators. This property will be checked before each creation.

Methods

bool
IsSupportedAlgorithm​(string algorithm, object[] args)
Determines if a cryptographic operation is supported.
Returns <see langword="true" /> if the algorithm is supported; otherwise, <see langword="false" /> .
algorithm The algorithm that defines the cryptographic operator.
args The arguments required by the cryptographic operator. May be null.
object
Create​(string algorithm, object[] args)
Returns a cryptographic operator that supports the specified algorithm.
Returns An object representing the cryptographic operator.
algorithm The algorithm that defines the cryptographic operator.
args The arguments required by the cryptographic operator. May be null.
Remarks Call <see cref="M:Microsoft.IdentityModel.Tokens.ICryptoProvider.Release(System.Object)" /> when finished with the object.
void
Release​(object cryptoInstance)
Releases the object returned from <see cref="M:Microsoft.IdentityModel.Tokens.ICryptoProvider.Create(System.String,System.Object[])" /> .
cryptoInstance The object returned from <see cref="M:Microsoft.IdentityModel.Tokens.ICryptoProvider.Create(System.String,System.Object[])" /> .