Compartir a través de


CryptoProviderFactory Class

Definition

Creates cryptographic operators by specifying a SecurityKey's and algorithms.

public class CryptoProviderFactory
type CryptoProviderFactory = class
Public Class CryptoProviderFactory
Inheritance
CryptoProviderFactory

Constructors

CryptoProviderFactory()

Initializes a new instance of the CryptoProviderFactory class.

CryptoProviderFactory(CryptoProviderCache)

Initializes a new instance of the CryptoProviderFactory class.

CryptoProviderFactory(CryptoProviderFactory)

Initializes a new instance of the CryptoProviderFactory class.

Properties

CacheSignatureProviders

Gets or sets a bool controlling if SignatureProvider should be cached.

CryptoProviderCache

Gets the CryptoProviderCache.

CustomCryptoProvider

Extensibility point for creating custom cryptographic operators.

Default

Returns the default CryptoProviderFactory instance.

DefaultCacheSignatureProviders

Gets or sets the default value for caching of SignatureProvider's.

DefaultSignatureProviderObjectPoolCacheSize

Gets or sets the maximum size of the object pool used by the SignatureProvider that are used for crypto objects.

SignatureProviderObjectPoolCacheSize

Gets or sets the maximum size of the object pool used by the SignatureProvider that are used for crypto objects.

Methods

CreateAuthenticatedEncryptionProvider(SecurityKey, String)

Creates an instance of AuthenticatedEncryptionProvider for a specific key and algorithm.

CreateForSigning(SecurityKey, String, Boolean)

Creates a SignatureProvider for signing with the specified key and algorithm.

CreateForSigning(SecurityKey, String)

Creates a SignatureProvider for signing with the specified key and algorithm.

CreateForVerifying(SecurityKey, String, Boolean)

Creates a SignatureProvider for verifying signatures with the specified key and algorithm.

CreateForVerifying(SecurityKey, String)

Creates a SignatureProvider for verifying signatures with the specified key and algorithm.

CreateHashAlgorithm(HashAlgorithmName)

Creates a HashAlgorithm instance for a specific hash algorithm.

CreateHashAlgorithm(String)

Creates a HashAlgorithm instance for a specific hash algorithm.

CreateKeyedHashAlgorithm(Byte[], String)

Creates a KeyedHashAlgorithm instance for a specific keyed hash algorithm.

CreateKeyWrapProvider(SecurityKey, String)

Creates an instance of KeyWrapProvider for a specific key and algorithm.

CreateKeyWrapProviderForUnwrap(SecurityKey, String)

Creates an instance of KeyWrapProvider for a specific key and algorithm.

IsSupportedAlgorithm(String, SecurityKey)

Checks if the specified algorithm and SecurityKey are supported.

IsSupportedAlgorithm(String)

Determines whether the specified hash algorithm is supported.

ReleaseHashAlgorithm(HashAlgorithm)

Releases resources associated with a HashAlgorithm instance. The default behavior is to call Dispose().

ReleaseKeyWrapProvider(KeyWrapProvider)

Releases resources associated with a KeyWrapProvider instance.

ReleaseRsaKeyWrapProvider(RsaKeyWrapProvider)

Releases resources associated with an RsaKeyWrapProvider instance.

ReleaseSignatureProvider(SignatureProvider)

Releases resources associated with a SignatureProvider instance.

Applies to