Framework EDI Reference. Methods and Properties
ediDocument. GetSecurities

Gets the securities object.

Syntax:

Returns

Object of type FREDI.ediDataSegment if the call is successful; otherwise Empty if the call fails.

Remarks

The ediSecurities object allows one to control the security for processing EDI documents.

Example

Dim oEdiDoc As Fredi.ediDocument
Dim oSecurity As Fredi.ediSecurity
Dim oSecurities As Fredi.ediSecurities
Dim sPKeyFile As String

sPKeyFile = "Recipient.pkey.bin"
Set oEdiDoc = New Fredi.ediDocument
Set oSecurities = oEdiDoc.GetSecurities

' Create key container for hypothetical trading partner.
oSecurities.CreateKeyContainer "FREDITEST_RECIPIENT1"

' Export public key of key container.
oSecurities.ExportPublicKey sPath & sPKeyFile, "FREDITEST_RECIPIENT1"