API Reference
IpsecBypassControl
Windows Defender Firewall IPsec authenticated bypass policy control (ICFv4\BypassFirewall). Evaluates the SDDL-like descriptor as a string for comparison. Future versions can parse SDDL.
Inheritance
- Object
- IpsecBypassControl
Constructors
public IpsecBypassControl(String id, String title, CxComparator comparator) #Creates an IPsec bypass policy control.
Parameters
- id System.String
- title System.String
- comparator ComputerX.Controls.CxComparator
Methods
public virtual CxEval Evaluate(String host, CxFacts facts) #CxEvalEvaluates the current value against desired values and returns a vendor comparison map.
Parameters
- host System.String
- facts ComputerX.Controls.CxFacts
public virtual Boolean IsApplicable(CxFacts facts) #BooleanChecks whether this control applies in the given facts context.
Parameters
- facts ComputerX.Controls.CxFacts
public virtual Object ReadCurrent(String host, CxFacts facts) #ObjectReads the current bypass descriptor from the target host.
Parameters
- host System.String
- facts ComputerX.Controls.CxFacts
public virtual Boolean TryWrite(String host, Object value, out String error) #BooleanAttempts to write the desired string value to the target host.
Parameters
- host System.String
- value System.Object
- error System.String@
public IpsecBypassControl WhereIs(CxCondition c) #IpsecBypassControlSets an applicability predicate for this control.
Parameters
- c ComputerX.Controls.CxCondition
public IpsecBypassControl WithDesired(CxVendor vendor, Object value, String ruleId = null, String note = null, String description = null, String referenceUrl = null, String severity = null, String category = null, String[] tags = null) #IpsecBypassControlAdds a vendor desired SDDL-like value with optional metadata.
Parameters
- vendor ComputerX.Controls.CxVendor
- value System.Object
- 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; } #Stable identifier of the control.
public virtual String Title { get; } #Human-friendly control title.
public virtual CxComparator Comparator { get; } #Comparator used to evaluate current vs desired string value.
public virtual CxValueKind ValueKind { get; } #Value kind for comparison (string SDDL-like descriptor).
public CxCondition Where { get; set; } #Optional applicability predicate limiting where the control applies.
public virtual IReadOnlyList<CxDesired> Desired { get; } #Vendor desired values (per baseline family).