Terraria v1.4.4.9
Terraria source code documentation
|
Static Public Member Functions | |
static WindowsIdentity | GetCurrent () |
static ? WindowsIdentity | GetCurrent (bool ifImpersonating) |
static WindowsIdentity | GetCurrent (TokenAccessLevels desiredAccess) |
static WindowsIdentity | GetAnonymous () |
static void | RunImpersonated (SafeAccessTokenHandle safeAccessTokenHandle, Action action) |
static T | RunImpersonated< T > (SafeAccessTokenHandle safeAccessTokenHandle, Func< T > func) |
static Task | RunImpersonatedAsync (SafeAccessTokenHandle safeAccessTokenHandle, Func< Task > func) |
static Task< T > | RunImpersonatedAsync< T > (SafeAccessTokenHandle safeAccessTokenHandle, Func< Task< T > > func) |
Static Public Attributes | |
const new string | DefaultIssuer = "AD AUTHORITY" |
const string | DefaultNameClaimType = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name" |
const string | DefaultRoleClaimType = "http://schemas.microsoft.com/ws/2008/06/identity/claims/role" |
Protected Member Functions | |
WindowsIdentity (WindowsIdentity identity) | |
virtual void | Dispose (bool disposing) |
virtual Claim | CreateClaim (BinaryReader reader) |
virtual void | WriteTo (BinaryWriter writer, byte[]? userData) |
Package Functions | |
string | GetName () |
Static Package Functions | |
static WindowsIdentity | GetCurrentInternal (TokenAccessLevels desiredAccess, bool threadOnly) |
Properties | |
override? string | AuthenticationType [get] |
TokenImpersonationLevel | ImpersonationLevel [get] |
override bool | IsAuthenticated [get] |
virtual bool | IsGuest [get] |
virtual bool | IsSystem [get] |
virtual bool | IsAnonymous [get] |
override string | Name [get] |
SecurityIdentifier? | Owner [get] |
SecurityIdentifier? | User [get] |
IdentityReferenceCollection? | Groups [get] |
SafeAccessTokenHandle | AccessToken [get] |
virtual IntPtr | Token [get] |
virtual IEnumerable< Claim > | UserClaims [get] |
virtual IEnumerable< Claim > | DeviceClaims [get] |
override IEnumerable< Claim > | Claims [get] |
ClaimsIdentity? | Actor [get, set] |
object? | BootstrapContext [get, set] |
virtual ? byte[] | CustomSerializationData [get] |
List< List< Claim > > | ExternalClaims [get] |
string? | Label [get, set] |
string | NameClaimType [get] |
string | RoleClaimType [get] |
Private Types | |
enum | SerializationMask { None = 0 , AuthenticationType = 1 , BootstrapConext = 2 , NameClaimType = 4 , RoleClaimType = 8 , HasClaims = 0x10 , HasLabel = 0x20 , Actor = 0x40 , UserData = 0x80 } |
Private Member Functions | |
WindowsIdentity (IntPtr userToken, string authType, int isAuthenticated) | |
WindowsIdentity () | |
void | CreateFromToken (IntPtr userToken) |
void ISerializable. | GetObjectData (SerializationInfo info, StreamingContext context) |
void IDeserializationCallback. | OnDeserialization (object sender) |
bool | CheckNtTokenForSid (SecurityIdentifier sid) |
T | GetTokenInformation< T > (TokenInformationClass tokenInformationClass) |
void | InitializeClaims () |
void | AddGroupSidClaims (List< Claim > instanceClaims) |
void | AddPrimarySidClaim (List< Claim > instanceClaims) |
void | AddDeviceGroupSidClaims (List< Claim > instanceClaims, TokenInformationClass tokenInformationClass) |
void | AddTokenClaims (List< Claim > instanceClaims, TokenInformationClass tokenInformationClass, string propertyValue) |
IEnumerable< Claim > | CombinedClaimsIterator () |
void | SafeAddClaims (IEnumerable< Claim > claims) |
void | SafeAddClaim (Claim claim) |
void | Initialize (BinaryReader reader) |
bool | IsCircular (ClaimsIdentity subject) |
Private Attributes | |
string | _name |
SecurityIdentifier | _owner |
SecurityIdentifier | _user |
IdentityReferenceCollection | _groups |
SafeAccessTokenHandle | _safeTokenHandle = SafeAccessTokenHandle.InvalidHandle |
readonly string | _authType |
int | _isAuthenticated = -1 |
volatile TokenImpersonationLevel | _impersonationLevel |
volatile bool | _impersonationLevelInitialized |
readonly string | _issuerName = "AD AUTHORITY" |
object | _claimsIntiailizedLock |
bool | _claimsInitialized |
List< Claim > | _deviceClaims |
List< Claim > | _userClaims |
byte[] | _userSerializationData |
ClaimsIdentity | _actor |
string | _authenticationType |
object | _bootstrapContext |
List< List< Claim > > | _externalClaims |
string | _label |
readonly List< Claim > | _instanceClaims = new List<Claim>() |
string | _nameClaimType = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name" |
string | _roleClaimType = "http://schemas.microsoft.com/ws/2008/06/identity/claims/role" |
Static Private Attributes | |
static SecurityIdentifier | s_authenticatedUserRid |
static SecurityIdentifier | s_domainRid |
static SecurityIdentifier | s_localSystemRid |
static SecurityIdentifier | s_anonymousRid |
static bool | s_ignoreWindows8Properties |
static readonly AsyncLocal< SafeAccessTokenHandle > | s_currentImpersonatedToken = new AsyncLocal<SafeAccessTokenHandle>(CurrentImpersonatedTokenChanged) |
Definition at line 15 of file WindowsIdentity.cs.