OFTPConnectionVirtualFileSecurityLevel Property
Specifies security options for the outgoing or incoming file.
Syntax
ANSI (Cross Platform) int GetOFTPConnectionVirtualFileSecurityLevel(int iConnectionId);
int SetOFTPConnectionVirtualFileSecurityLevel(int iConnectionId, int iOFTPConnectionVirtualFileSecurityLevel); Unicode (Windows) INT GetOFTPConnectionVirtualFileSecurityLevel(INT iConnectionId);
INT SetOFTPConnectionVirtualFileSecurityLevel(INT iConnectionId, INT iOFTPConnectionVirtualFileSecurityLevel);
Possible Values
SL_NONE(0),
SL_ENCRYPTED(1),
SL_SIGNED(2),
SL_ENCRYPTED_AND_SIGNED(3)
- (int)OFTPConnectionVirtualFileSecurityLevel:(int)connectionId; - (void)setOFTPConnectionVirtualFileSecurityLevel:(int)connectionId:(int)newOFTPConnectionVirtualFileSecurityLevel;
Possible Values
SL_NONE(0),
SL_ENCRYPTED(1),
SL_SIGNED(2),
SL_ENCRYPTED_AND_SIGNED(3)
#define PID_OFTPSERVER_OFTPCONNECTIONVIRTUALFILESECURITYLEVEL 29 IPWORKSEDI_EXTERNAL void* IPWORKSEDI_CALL IPWorksEDI_OFTPServer_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSEDI_EXTERNAL int IPWORKSEDI_CALL IPWorksEDI_OFTPServer_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal); IPWORKSEDI_EXTERNAL int IPWORKSEDI_CALL IPWorksEDI_OFTPServer_CheckIndex(void *lpObj, int propid, int arridx);
Default Value
0
Remarks
Specifies security options for the outgoing or incoming file.
When receiving files, query this property to determine the security level of the file received from the client.
When sending files to the client, this property will be used to determine what security options apply to the outgoing file. Possible values are:
0 (slNone - default) | The file will not be signed nor encrypted. |
1 (slEncrypted) | The file will be encrypted using the certificate specified by the OFTPConnectionRecipientCertSubject. property |
2 (slSigned) | The file will be signed using the certificate specified by the Certificate property; |
3 (slEncryptedAndSigned) | The file will be both signed and encrypted. |
Note that this is only applicable when Version 2.0 of the protocol is used as indicated by OFTPConnectionVersion.
The ConnectionId parameter specifies the index of the item in the array. The size of the array is controlled by the OFTPConnectionCount property.
This property is not available at design time.
Data Type
Integer