TestimoX

API Reference

Class

IpsecBypassControl

Namespace ComputerX.Controls
Assembly ComputerX
Implements
Modifiers sealed

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 requiredposition: 0
title System.String requiredposition: 1
comparator ComputerX.Controls.CxComparator requiredposition: 2

Methods

public virtual CxEval Evaluate(String host, CxFacts facts) #
Returns: CxEval

Evaluates the current value against desired values and returns a vendor comparison map.

Parameters

host System.String requiredposition: 0
facts ComputerX.Controls.CxFacts requiredposition: 1
public virtual Boolean IsApplicable(CxFacts facts) #
Returns: Boolean

Checks whether this control applies in the given facts context.

Parameters

facts ComputerX.Controls.CxFacts requiredposition: 0
public virtual Object ReadCurrent(String host, CxFacts facts) #
Returns: Object

Reads the current bypass descriptor from the target host.

Parameters

host System.String requiredposition: 0
facts ComputerX.Controls.CxFacts requiredposition: 1
public virtual Boolean TryWrite(String host, Object value, out String error) #
Returns: Boolean

Attempts to write the desired string value to the target host.

Parameters

host System.String requiredposition: 0
value System.Object requiredposition: 1
error System.String@ requiredposition: 2
public IpsecBypassControl WhereIs(CxCondition c) #
Returns: IpsecBypassControl

Sets an applicability predicate for this control.

Parameters

c ComputerX.Controls.CxCondition requiredposition: 0
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) #
Returns: IpsecBypassControl

Adds a vendor desired SDDL-like value with optional metadata.

Parameters

vendor ComputerX.Controls.CxVendor requiredposition: 0
value System.Object requiredposition: 1
ruleId System.String = null optionalposition: 2
note System.String = null optionalposition: 3
description System.String = null optionalposition: 4
referenceUrl System.String = null optionalposition: 5
severity System.String = null optionalposition: 6
category System.String = null optionalposition: 7
tags System.String[] = null optionalposition: 8

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).