ICIContentIntegrityControlProfile

The ICIContentIntegrityControlProfile interface is used to define Content Integrity Control profiles used in the Scan file using Content Integrity Control Action in Event Rules. Many of these settings depend on the settings on the ICAP server. (You can also define an "ad hoc" profile when defining the Event Rule.)

Properties

HRESULT AuditResponseHeaders([out, retval] BSTR *pVal);

HRESULT AuditResponseHeaders([in] BSTR newVal);

EFT v7.0.3

HRESULT AuditResponseHeadersEnabled([out, retval] BOOL *pVal);

HRESULT AuditResponseHeadersEnabled([in] BOOL newVal);

EFT v7.0.3

HRESULT Host([out, retval] BSTR *pVal);

HRESULT Host([in] BSTR newVal);

EFT v7.0.3

HRESULT IcapMode([out, retval] IcapMode *pVal);

HRESULT IcapMode([in] IcapMode newVal);

(See also the IcapMode enum.)

EFT v7.0.3

HRESULT MaxScanSize([out, retval] long *pVal);

HRESULT MaxScanSize([in] long newVal);

EFT v7.0.3

HRESULT MaxScanSizeEnabled([out, retval] BOOL *pVal);

HRESULT MaxScanSizeEnabled([in] BOOL newVal);

EFT v7.0.3

HRESULT MaxScanSizeUnits([out, retval] IcapMaxScanSizeUnits *pVal);

HRESULT MaxScanSizeUnits([in] IcapMaxScanSizeUnits newVal);

(See also the IcapMaxScanSizeUnits enum.)

EFT v7.0.3

HRESULT Name([out, retval] BSTR *pVal);

HRESULT Name([in] BSTR newVal);

EFT v7.0.3

HRESULT Path([out, retval] BSTR *pVal);

HRESULT Path([in] BSTR newVal);

EFT v7.0.3

HRESULT Port([out, retval] long *pVal);

HRESULT Port([in] long newVal);

EFT v7.0.3

HRESULT ResponseParsingResponseBodyText([out, retval] BSTR *pVal);

HRESULT ResponseParsingResponseBodyText([in] BSTR newVal);

EFT v7.0.3

HRESULT ResponseParsingResponseHeadersText([out, retval] BSTR *pVal);

HRESULT ResponseParsingResponseHeadersText([in] BSTR newVal);

EFT v7.0.3

HRESULT ViolationIsNonBlocking([out, retval] VARIANT_BOOL *pVal);

HRESULT ViolationIsNonBlocking([in] VARIANT_BOOL newVal);

EFT v7.0.3

Dialog Box Equivalents

Script Examples

Adding / Updating a Profile

'''''''''''''''''''''''''

''Add profile

'''''''''''''''''''''''''

Set newProfile = WScript.CreateObject("SFTPCOMInterface.CIContentIntegrityControlProfile")

newProfile.Name = "test3"

newProfile.Host = "localhost3"

newProfile.Port = "3333"

// ....

SFTPServer.AddContentIntegrityControlProfile newProfile

'''''''''''''''''''''''''

''Update profile

'''''''''''''''''''''''''

newProfile.Host = "newHost"

i = SFTPServer.GetContentIntegrityControlProfile("test3")

SFTPServer.UpdateContentIntegrityControlProfile newProfile, i

Looping Through the Profile List and Printing Basic Information

profiles = SFTPServer.ContentIntegrityControlProfileList

For Each profile In profiles

WScript.Echo "Profile: " & profile.Name & "; Host: " & profile.Host & "; Port: " & profile.Port

Next

Building the Action Parameters, Using Ad Hoc Profiles

Set CICActionParams = WScript.CreateObject("SFTPCOMInterface.CIContentIntegrityControlActionParams")

''This ActionParams is now linked to Profile1 in the server list

CICActionParams.ProfileName = "Profile1"

CICActionParams.File = "File"

''Setting an Ad Hoc Profile

Set adHocProfile = WScript.CreateObject("SFTPCOMInterface.CIContentIntegrityControlProfile")

adHocProfile.Host = "localhost3"

adHocProfile.Port = "2222"

CICActionParams.AdHocProfile = adHocProfile

''If we set the profile name to a saved profile and then try to get the ad hoc profile property, we'll get an error

CICActionParams.ProfileName = "Profile1"

Set AdHocProfile = CICActionParams.AdHocProfile

Related Topics