|
CryptoServiceBaseExportKey Method (String, CryptoKeyStore, String, String, Boolean, CryptoProviderType) |
The documentation is integral part of the weroSoft product documentation. This part is intended to be used by developers only.
Exports an asymmetric key to a file.
Namespace:
WeroSoft.Security
Assembly:
WeroSoft.Core.Library (in WeroSoft.Core.Library.dll) Version: 3.0 Pre-Release
Syntax public static void ExportKey(
string keyContainerName,
CryptoKeyStore keyStore,
string fileName,
string password,
bool includePrivateParameters,
CryptoProviderType providerType = CryptoProviderType.Rsa
)
Parameters
- keyContainerName
- Type: SystemString
Name of the key container whose key shall be exported to a file. - keyStore
- Type: WeroSoft.SecurityCryptoKeyStore
The key store from where the key shall be exported. - fileName
- Type: SystemString
Fully qualified file name where the key shall be exported to. - password
- Type: SystemString
Password used to encrypt the resulting file. Leaf this empty or null to write an XML. - includePrivateParameters
- Type: SystemBoolean
True if the private key is exported; otherwise false. - providerType (Optional)
- Type: WeroSoft.SecurityCryptoProviderType
Type of the provider who's key is exported.
See Also