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()

Default constructor for CryptoProviderFactory.

CryptoProviderFactory(CryptoProviderCache)

Initializes an instance of a CryptoProviderFactory.

CryptoProviderFactory(CryptoProviderFactory)

Constructor that creates a deep copy of given CryptoProviderFactory object.

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 <SecurityKey, Algorithm>.

CreateForSigning(SecurityKey, String)

Creates a SignatureProvider that creates a signature with the algorithm and SecurityKey.

CreateForSigning(SecurityKey, String, Boolean)

Creates a SignatureProvider that creates a signature with the algorithm and SecurityKey.

CreateForVerifying(SecurityKey, String)

Creates a SignatureProvider that supports the SecurityKey and algorithm.

CreateForVerifying(SecurityKey, String, Boolean)

Creates a SignatureProvider that supports the SecurityKey and algorithm.

CreateHashAlgorithm(HashAlgorithmName)

Creates a HashAlgorithm for a specific algorithm.

CreateHashAlgorithm(String)

Creates a HashAlgorithm for a specific algorithm.

CreateKeyedHashAlgorithm(Byte[], String)

Returns a KeyedHashAlgorithm for a specific algorithm.

CreateKeyWrapProvider(SecurityKey, String)

Creates an instance of KeyWrapProvider for a specific <SecurityKey, Algorithm>.

CreateKeyWrapProviderForUnwrap(SecurityKey, String)

Creates an instance of KeyWrapProvider for a specific <SecurityKey, Algorithm>.

IsSupportedAlgorithm(String)

Checks if an algorithm is supported.

IsSupportedAlgorithm(String, SecurityKey)

Checks if the algorithm and SecurityKey is supported.

ReleaseHashAlgorithm(HashAlgorithm)

When finished with a HashAlgorithm call this method for cleanup. The default behavior is to call Dispose()

ReleaseKeyWrapProvider(KeyWrapProvider)

When finished with a KeyWrapProvider call this method for cleanup."/>

ReleaseRsaKeyWrapProvider(RsaKeyWrapProvider)

When finished with a RsaKeyWrapProvider call this method for cleanup."/>

ReleaseSignatureProvider(SignatureProvider)

When finished with a SignatureProvider call this method for cleanup. The default behavior is to call Dispose()

Applies to