Namespace: System.Security.Principal
TokenInformationClass Enum
Specifies the type of information to retrieve from an access token.
Syntax
public enum TokenInformationClass
Members
| Member | Description |
|---|---|
TokenUser |
Retrieves the user associated with the access token. |
TokenGroups |
Retrieves the group SIDs associated with the access token. |
TokenPrivileges |
Retrieves the privileges associated with the access token. |
TokenOwner |
Retrieves the owner SID of the access token. |
TokenPrimaryGroup |
Retrieves the primary group SID of the access token. |
TokenDefaultDacl |
Retrieves the default DACL associated with the access token. |
TokenSource |
Retrieves the source of the access token. |
TokenStatistics |
Retrieves statistics about the access token. |
TokenRestrictedSids |
Retrieves the restricted SIDs associated with the access token. |
TokenSessionId |
Retrieves the session ID associated with the access token. |
TokenOrigin |
Retrieves the origin of the access token. |
TokenElevationType |
Retrieves the elevation type of the access token. |
TokenLinkedToken |
Retrieves a linked access token, if present. |
TokenElevation |
Retrieves elevation information. |
TokenPackageClaims |
Retrieves package claims associated with the access token. |
TokenAppContainerSid |
Retrieves the AppContainer SID associated with the access token. |
TokenAppContainerIdentity |
Retrieves the AppContainer identity associated with the access token. |
Tokenktions |
Retrieves all token information. |
Remarks
The TokenInformationClass enumeration is used with the NtQueryInformationToken Win32 API function to specify which piece of information to retrieve from an access token.
Access tokens are security objects that describe the security attributes of a process or thread. They contain information about the user account, group memberships, privileges, and other security-related data.
By specifying a member of TokenInformationClass, you can selectively retrieve specific details about the token, allowing for fine-grained control over security-related operations.
Important: This enumeration is part of the Windows API and is typically accessed through P/Invoke in .NET. Direct manipulation of these values requires a deep understanding of Windows security concepts.
Requirements
| Information | Details |
|---|---|
| Assembly | System.Security.dll |
| Namespace | System.Security.Principal |
| Platform | Windows |