Class ToolPermissionProfile
In-memory explicit tool permission profile resolved from user/project config.
Rules support exact names and glob patterns (*, ?).
public sealed class ToolPermissionProfile
- Inheritance
-
ToolPermissionProfile
- Inherited Members
Properties
Empty
public static ToolPermissionProfile Empty { get; }
Property Value
GlobalAllowed
[SuppressMessage("Design", "CA1002:Do not expose generic lists", Justification = "Simple mutable runtime profile")]
public List<string> GlobalAllowed { get; }
Property Value
GlobalDenied
[SuppressMessage("Design", "CA1002:Do not expose generic lists", Justification = "Simple mutable runtime profile")]
public List<string> GlobalDenied { get; }
Property Value
ProjectAllowed
[SuppressMessage("Design", "CA1002:Do not expose generic lists", Justification = "Simple mutable runtime profile")]
public List<string> ProjectAllowed { get; }
Property Value
ProjectDenied
[SuppressMessage("Design", "CA1002:Do not expose generic lists", Justification = "Simple mutable runtime profile")]
public List<string> ProjectDenied { get; }
Property Value
Methods
AddAllowed(string, bool)
public void AddAllowed(string toolPattern, bool projectScope)
Parameters
AddDenied(string, bool)
public void AddDenied(string toolPattern, bool projectScope)
Parameters
IsExplicitlyAllowed(string)
public bool IsExplicitlyAllowed(string toolName)
Parameters
toolNamestring
Returns
IsExplicitlyDenied(string)
public bool IsExplicitlyDenied(string toolName)
Parameters
toolNamestring
Returns
MatchesRule(string, string)
public static bool MatchesRule(string value, string pattern)