Freigeben über


CryptoProviderCache.TryGetSignatureProvider Method

Definition

Tries to find a SignatureProvider in this cache.

public abstract bool TryGetSignatureProvider (Microsoft.IdentityModel.Tokens.SecurityKey securityKey, string algorithm, string typeofProvider, bool willCreateSignatures, out Microsoft.IdentityModel.Tokens.SignatureProvider signatureProvider);
abstract member TryGetSignatureProvider : Microsoft.IdentityModel.Tokens.SecurityKey * string * string * bool * SignatureProvider -> bool
Public MustOverride Function TryGetSignatureProvider (securityKey As SecurityKey, algorithm As String, typeofProvider As String, willCreateSignatures As Boolean, ByRef signatureProvider As SignatureProvider) As Boolean

Parameters

securityKey
SecurityKey

The key used by the cryptographic provider.

algorithm
String

The algorithm used by the cryptographic provider.

typeofProvider
String

The type of the cryptographic provider obtained by calling object.GetType().

willCreateSignatures
Boolean

If true, the provider will be used for creating signatures.

signatureProvider
SignatureProvider

The SignatureProvider if found.

Returns

True if a SignatureProvider was found; false otherwise.

Applies to