API Reference
Class
InternalSidCatalog
Catalog of SID prefixes that represent internal, trusted, builtin, and service identities.
Inheritance
- Object
- InternalSidCatalog
Constructors
public InternalSidCatalog(IEnumerable<SecurityIdentifier> internalDomains, IEnumerable<SecurityIdentifier> trustedDomains, IEnumerable<SecurityIdentifier> builtinPrefixes, IEnumerable<SecurityIdentifier> wellKnownPrefixes, IEnumerable<SecurityIdentifier> servicePrefixes, SecurityIdentifier localMachineSid, IEnumerable<String> deadDomainPrefixes = null) #Initializes a new instance of the InternalSidCatalog class.
Parameters
- internalDomains System.Collections.Generic.IEnumerable{System.Security.Principal.SecurityIdentifier}
- Domain SID prefixes belonging to the current forest (S-1-5-21-...).
- trustedDomains System.Collections.Generic.IEnumerable{System.Security.Principal.SecurityIdentifier}
- Domain SID prefixes from trusted forests/external domains.
- builtinPrefixes System.Collections.Generic.IEnumerable{System.Security.Principal.SecurityIdentifier}
- BUILTIN authority prefixes (e.g., S-1-5-32).
- wellKnownPrefixes System.Collections.Generic.IEnumerable{System.Security.Principal.SecurityIdentifier}
- Other well-known SID prefixes (Everyone, Authenticated Users, etc.).
- servicePrefixes System.Collections.Generic.IEnumerable{System.Security.Principal.SecurityIdentifier}
- Service/capability SID prefixes (S-1-5-80, S-1-15-2, etc.).
- localMachineSid System.Security.Principal.SecurityIdentifier
- Local machine SID (for local accounts).
- deadDomainPrefixes System.Collections.Generic.IEnumerable{System.String} = null
- Known defunct domain SID prefixes.
Methods
public Boolean IsBuiltinOrWellKnown(SecurityIdentifier sid) #Returns:
BooleanDetermines whether the SID is builtin or well-known.
Parameters
- sid System.Security.Principal.SecurityIdentifier
public Boolean IsDeadDomain(SecurityIdentifier sid) #Returns:
BooleanDetermines whether the SID belongs to a known defunct domain prefix.
Parameters
- sid System.Security.Principal.SecurityIdentifier
public Boolean IsInternal(SecurityIdentifier sid) #Returns:
BooleanDetermines whether the SID matches an internal domain prefix.
Parameters
- sid System.Security.Principal.SecurityIdentifier
public Boolean IsLocalMachine(SecurityIdentifier sid) #Returns:
BooleanDetermines whether the SID belongs to the local machine account domain.
Parameters
- sid System.Security.Principal.SecurityIdentifier
public Boolean IsServiceOrCapability(SecurityIdentifier sid) #Returns:
BooleanDetermines whether the SID is a service or capability SID.
Parameters
- sid System.Security.Principal.SecurityIdentifier
public Boolean IsTrusted(SecurityIdentifier sid) #Returns:
BooleanDetermines whether the SID matches a trusted domain prefix.
Parameters
- sid System.Security.Principal.SecurityIdentifier
Inherited Methods
Properties
public static InternalSidCatalog Empty { get; } #Gets an empty catalog that classifies nothing as internal or trusted.