Sets or gets the name of Cryptographic Service Provider (CSP) that provides the security services.
Syntax:
<sServiceProviderName> = object.DefaultProviderName
object.DefaultProviderName= <sServiceProviderName>
Remarks
The service provider name assigned to this property must be the name of a service provider that already exists in the operating system, otherwise an error will be generated. Furthermore, the service provider must already have the default key container that was initially determined or previously assigned to the property DefaultKeyContainer. To assign all parameters of the default CSP, use the SetDefaultCSP method.
Some methods or objects may require an optional service provider name for operation, but if none is specified then the methods or objects will use the name set here as default.
Example:
Dim oEdiDoc As Fredi.ediDocument
Dim oSecurities As Fredi.ediSecurities
Dim sSessKeyFile As String
' Create instance of Framework EDI.
Set oEdiDoc = New Fredi.ediDocument
' Get the securities object
Set oSecurities = oEdiDoc.GetSecurities
' Set Cryptographic Service Provider default.
oSecurities.DefaultProviderName = "Microsoft Enhanced Cryptographic Provider v1.0"
Sample