API Reference
KerberosPolicyControl
Typed control for Kerberos policy recommendations.
Inheritance
- Object
- KerberosPolicyControl
Constructors
public KerberosPolicyControl(String id, String title, CxKerberosPolicyField field, CxComparator comparator) #Creates a Kerberos policy control for the given field.
Parameters
- id System.String
- title System.String
- field ComputerX.Controls.CxKerberosPolicyField
- 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 String GetAnchor() #StringReturns the specific Kerberos policy anchor including scope when available. Format: KERB|Field|Scope where Scope may be null/empty.
public virtual String GetUnifiedAnchor() #StringReturns the canonical unified anchor for this Kerberos policy field. Format: U|KERB|Field (no scope component).
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 Kerberos policy field value 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 Kerberos policy value to the target host.
Parameters
- host System.String
- value System.Object
- error System.String@
public KerberosPolicyControl WhereIs(CxCondition c) #KerberosPolicyControlSets an applicability predicate for this control.
Parameters
- c ComputerX.Controls.CxCondition
public KerberosPolicyControl 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) #KerberosPolicyControlAdds a vendor desired 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 CxValueKind ValueKind { get; } #Value kind derived from the Kerberos policy field.
public virtual CxComparator Comparator { get; } #Comparator used to evaluate current vs desired value.
public CxKerberosPolicyField Field { get; } #Target Kerberos policy field.
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).