Udostępnij za pośrednictwem


CryptoProviderFactory.IsSupportedAlgorithm Method

Definition

Overloads

IsSupportedAlgorithm(String)

Determines whether the specified hash algorithm is supported.

IsSupportedAlgorithm(String, SecurityKey)

Checks if the specified algorithm and SecurityKey are supported.

IsSupportedAlgorithm(String)

Determines whether the specified hash algorithm is supported.

public virtual bool IsSupportedAlgorithm (string algorithm);
abstract member IsSupportedAlgorithm : string -> bool
override this.IsSupportedAlgorithm : string -> bool
Public Overridable Function IsSupportedAlgorithm (algorithm As String) As Boolean

Parameters

algorithm
String

The name of the hash algorithm.

Returns

true if:

Otherwise, false.

Remarks

Considers only known hash algorithms.

Applies to

IsSupportedAlgorithm(String, SecurityKey)

Checks if the specified algorithm and SecurityKey are supported.

public virtual bool IsSupportedAlgorithm (string algorithm, Microsoft.IdentityModel.Tokens.SecurityKey key);
abstract member IsSupportedAlgorithm : string * Microsoft.IdentityModel.Tokens.SecurityKey -> bool
override this.IsSupportedAlgorithm : string * Microsoft.IdentityModel.Tokens.SecurityKey -> bool
Public Overridable Function IsSupportedAlgorithm (algorithm As String, key As SecurityKey) As Boolean

Parameters

algorithm
String

The security algorithm to be used.

Returns

true if:

Otherwise, false.

Remarks

Algorithms are supported for specific key types. For example:

Applies to