Set or gets the Cryptographic Service Provider (CSP) type.
Syntax:
<lProviderType> = object.ServiceProviderType
object.ServiceProviderType= <lProviderType>
Remarks
Security services are provided by the Cryptographic Service Provider (CSP). Each CSP falls into a different class that is defined by the CSP type. The CSP type indicates how the family of CSPs operate and in particular specifies the following item:Some methods have their service provider type parameter specified as optional. If the parameter is not specified in these methods the service provider type set here is used instead as default. Please see Cryptographic Service Provider Type constants for the valid values for the service provider type.
- Key Exchange Algorithm
- Digital Signature Algorithm
- Key Blob Formats
- Digital Signature Formats
- Session key derivation scheme
- Key Length
- Default Modes
Example:
Set oSecurities = oEdiDoc.GetSecurities
' Creates a new key container for hypothetical trading partner.
oSecurities.DeleteKeyContainer sKeyContainerName
oSecurities.CreateKeyContainer sKeyContainerName
'Export public key
sPKeyFile = "Recipient.pkey.bin"
oSecurities.ExportPublicKey sPKeyFile, sKeyContainerName