API Reference
FirewallProgramExceptionsControl
Defines inbound program exceptions list (AuthorizedApplications\List) for a given firewall profile. Evaluates as a list of entries (string tokens as stored in policy), compared with list semantics.
Inheritance
- Object
- FirewallProgramExceptionsControl
Constructors
public FirewallProgramExceptionsControl(String id, String title, FirewallProfileKind profile, CxComparator comparator) #Creates a control bound to program exceptions for the profile.
Parameters
- id System.String
- title System.String
- profile ComputerX.Firewall.FirewallProfileKind
- comparator ComputerX.Controls.CxComparator
Methods
public virtual CxEval Evaluate(String host, CxFacts facts) #CxEvalEvaluates current vs desired program exceptions.
Parameters
- host System.String
- facts ComputerX.Controls.CxFacts
public virtual Boolean IsApplicable(CxFacts facts) #BooleanTrue when the control applies to the provided facts.
Parameters
- facts ComputerX.Controls.CxFacts
public virtual Object ReadCurrent(String host, CxFacts facts) #ObjectReads current AuthorizedApplications list for the profile.
Parameters
- host System.String
- facts ComputerX.Controls.CxFacts
public virtual Boolean TryWrite(String host, Object value, out String error) #BooleanWrites the program exception list back to policy for the profile.
Parameters
- host System.String
- value System.Object
- error System.String@
public FirewallProgramExceptionsControl WhereIs(CxCondition c) #FirewallProgramExceptionsControlSets an applicability condition.
Parameters
- c ComputerX.Controls.CxCondition
public FirewallProgramExceptionsControl WithDesired(CxVendor vendor, IEnumerable<String> entries, String ruleId = null, String note = null, String description = null, String referenceUrl = null, String severity = null, String category = null, String[] tags = null) #FirewallProgramExceptionsControlAdds desired entries for a vendor.
Parameters
- vendor ComputerX.Controls.CxVendor
- entries System.Collections.Generic.IEnumerable{System.String}
- ruleId System.String = null
- note System.String = null
- description System.String = null
- referenceUrl System.String = null
- severity System.String = null
- category System.String = null
- tags System.String[] = null
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public virtual String Id { get; } #Unique identifier for the control.
public virtual String Title { get; } #Display title for the control.
public virtual CxValueKind ValueKind { get; } #Value kind (string list of program exception tokens).
public virtual CxComparator Comparator { get; } #Comparator used for evaluation.
public FirewallProfileKind Profile { get; } #Firewall profile (Domain/Private/Public).
public CxCondition Where { get; set; } #Optional applicability condition.
public virtual IReadOnlyList<CxDesired> Desired { get; } #Desired entries per vendor.