6 instantiations of PermissionToken
mscorlib (6)
system\appdomain.cs (1)
2883
PermissionToken pToken = new
PermissionToken
();
system\security\permissiontoken.cs (5)
427
tok = new
PermissionToken
( m_index++, PermissionTokenType.IUnrestricted, typeStr );
432
tok = new
PermissionToken
( m_index++, PermissionTokenType.IUnrestricted, typeStr );
434
tok = new
PermissionToken
( m_index++, PermissionTokenType.Normal, typeStr );
498
tok = new
PermissionToken
( m_index++, PermissionTokenType.DontKnow, typeStr );
532
token = new
PermissionToken
( index, permType | PermissionTokenType.BuiltIn, null );
143 references to PermissionToken
mscorlib (143)
system\appdomain.cs (1)
2883
PermissionToken
pToken = new PermissionToken();
system\security\codeaccesssecurityengine.cs (9)
55
internal static
PermissionToken
AssertPermissionToken;
101
AssertPermissionToken =
PermissionToken
.GetToken(AssertPermission);
261
PermissionToken
permToken,
299
PermissionToken
permToken,
321
permToken =
PermissionToken
.GetToken(demand);
521
cs.GetZoneAndOrigin(zoneList, originList,
PermissionToken
.GetToken(typeof(ZoneIdentityPermission)),
PermissionToken
.GetToken(typeof(UrlIdentityPermission)));
561
CheckHelper( granted, refused, demand,
PermissionToken
.GetToken(demand), RuntimeMethodHandleInternal.EmptyHandle, asm, SecurityAction.Demand, true );
605
internal static extern FrameSecurityDescriptor CheckNReturnSO(
PermissionToken
permToken,
system\security\framesecuritydescriptor.cs (2)
285
internal bool CheckDemand(CodeAccessPermission demand,
PermissionToken
permToken, RuntimeMethodHandleInternal rmh)
298
internal bool CheckDemand2(CodeAccessPermission demand,
PermissionToken
permToken, RuntimeMethodHandleInternal rmh, bool fDeclarative)
system\security\permissionlistset.cs (5)
433
PermissionToken
permToken = null;
435
permToken =
PermissionToken
.GetToken(demand);
453
internal bool CheckDemand(CodeAccessPermission demand,
PermissionToken
permToken, RuntimeMethodHandleInternal rmh)
546
internal void GetZoneAndOrigin(ArrayList zoneList, ArrayList originList,
PermissionToken
zoneToken,
PermissionToken
originToken)
system\security\permissionset.cs (66)
380
Contract.Assert(
PermissionToken
.IsTokenProperlyAssigned( perm,
PermissionToken
.GetToken( perm ) ),
382
Contract.Assert(
PermissionToken
.GetToken( perm ).m_index == index,
387
internal IPermission GetPermission(
PermissionToken
permToken)
400
return GetPermission(
PermissionToken
.GetToken( perm ));
414
return GetPermission(
PermissionToken
.FindToken(permClass));
430
PermissionToken
permToken =
PermissionToken
.GetToken(perm);
465
PermissionToken
permToken =
PermissionToken
.GetToken(perm);
514
PermissionToken
permToken =
PermissionToken
.FindToken(permClass);
697
internal void CheckDecoded( CodeAccessPermission demandedPerm,
PermissionToken
tokenDemandedPerm )
705
tokenDemandedPerm =
PermissionToken
.GetToken( demandedPerm );
868
Contract.Assert(
PermissionToken
.s_tokenSet.GetItem( i ) != null, "PermissionToken should already be assigned" );
873
PermissionToken
token = (
PermissionToken
)
PermissionToken
.s_tokenSet.GetItem( i );
877
Contract.Assert(
PermissionToken
.s_tokenSet.GetItem( i ) != null, "PermissionToken should already be assigned" );
897
PermissionToken
token = (
PermissionToken
)
PermissionToken
.s_tokenSet.GetItem( i );
1029
Contract.Assert(
PermissionToken
.s_tokenSet.GetItem( i ) != null, "PermissionToken should already be assigned" );
1035
PermissionToken
token = (
PermissionToken
)
PermissionToken
.s_tokenSet.GetItem( i );
1039
Contract.Assert(
PermissionToken
.s_tokenSet.GetItem( i ) != null, "PermissionToken should already be assigned" );
1055
Contract.Assert(
PermissionToken
.s_tokenSet.GetItem( i ) != null, "PermissionToken should already be assigned" );
1061
PermissionToken
token = (
PermissionToken
)
PermissionToken
.s_tokenSet.GetItem( i );
1065
Contract.Assert(
PermissionToken
.s_tokenSet.GetItem( i ) != null, "PermissionToken should already be assigned" );
1087
Contract.Assert( intersectPerm == null ||
PermissionToken
.s_tokenSet.GetItem( i ) != null, "PermissionToken should already be assigned" );
1189
PermissionToken
token = (
PermissionToken
)
PermissionToken
.s_tokenSet.GetItem( i );
1301
Contract.Assert(
PermissionToken
.s_tokenSet.GetItem( i ) != null, "PermissionToken should already be assigned" );
1307
PermissionToken
token = (
PermissionToken
)
PermissionToken
.s_tokenSet.GetItem( i );
1311
Contract.Assert(
PermissionToken
.s_tokenSet.GetItem( i ) != null, "PermissionToken should already be assigned" );
1326
PermissionToken
token = (
PermissionToken
)
PermissionToken
.s_tokenSet.GetItem( i );
1330
Contract.Assert(
PermissionToken
.s_tokenSet.GetItem( i ) != null, "PermissionToken should already be assigned" );
1351
Contract.Assert( unionPerm == null ||
PermissionToken
.s_tokenSet.GetItem( i ) != null, "PermissionToken should already be assigned" );
1407
PermissionToken
token =
PermissionToken
.GetToken(perm);
1780
PermissionToken
token;
1785
token =
PermissionToken
.GetToken( className );
1797
token =
PermissionToken
.GetToken( (IPermission)objectToInsert );
1816
token =
PermissionToken
.GetToken( ip );
1817
Contract.Assert(
PermissionToken
.IsTokenProperlyAssigned( ip, token ),
1885
PermissionToken
token;
1890
token =
PermissionToken
.GetToken( className );
1904
token =
PermissionToken
.GetToken( (IPermission)objectToInsert );
1924
token =
PermissionToken
.GetToken( ip );
1925
Contract.Assert(
PermissionToken
.IsTokenProperlyAssigned( ip, token ),
2038
PermissionToken
token =
PermissionToken
.GetToken( tempPerm );
2069
PermissionToken
token =
PermissionToken
.GetToken( tempPerm );
2118
Contract.Assert(perm == null ||
PermissionToken
.IsTokenProperlyAssigned( perm,
PermissionToken
.GetToken( perm ) ), "PermissionToken was improperly assigned");
2121
PermissionToken
permToken =
PermissionToken
.GetToken(perm);
system\security\permissionsettriple.cs (9)
30
static private volatile
PermissionToken
s_zoneToken;
31
static private volatile
PermissionToken
s_urlToken;
56
private
PermissionToken
ZoneToken
62
s_zoneToken =
PermissionToken
.GetToken(typeof(ZoneIdentityPermission));
66
private
PermissionToken
UrlToken
72
s_urlToken =
PermissionToken
.GetToken(typeof(UrlIdentityPermission));
174
static bool CheckAssert(PermissionSet pSet, CodeAccessPermission demand,
PermissionToken
permToken)
216
internal bool CheckDemand(CodeAccessPermission demand,
PermissionToken
permToken, RuntimeMethodHandleInternal rmh)
245
internal bool CheckDemandNoThrow(CodeAccessPermission demand,
PermissionToken
permToken)
system\security\permissiontoken.cs (36)
151
public static
PermissionToken
GetToken(Type cls)
180
public static
PermissionToken
GetToken(IPermission perm)
194
public static
PermissionToken
GetToken(String typeStr)
212
public static
PermissionToken
GetToken(String typeStr, bool bCreateMscorlib)
230
PermissionToken
token = s_theTokenFactory.GetToken(typeStr);
239
public static
PermissionToken
FindToken( Type cls )
269
public static
PermissionToken
FindTokenByIndex( int i )
274
public static bool IsTokenProperlyAssigned( IPermission perm,
PermissionToken
token )
276
PermissionToken
heldToken = GetToken( perm );
312
PermissionToken
realToken;
342
private volatile
PermissionToken
[] m_builtIn;
348
m_builtIn = new
PermissionToken
[BuiltInPermissionIndex.NUM_BUILTIN_NORMAL + BuiltInPermissionIndex.NUM_BUILTIN_UNRESTRICTED];
359
internal
PermissionToken
FindToken( Type cls )
362
PermissionToken
tok = (
PermissionToken
)m_handleTable[typePtr];
370
tok = (
PermissionToken
)m_tokenTable[cls.AssemblyQualifiedName];
384
internal
PermissionToken
FindTokenByIndex( int i )
386
PermissionToken
token;
394
token = (
PermissionToken
)m_indexTable[i];
401
internal
PermissionToken
GetToken(Type cls, IPermission perm)
438
PermissionToken
.s_tokenSet.SetItem( ((
PermissionToken
)tok).m_index, tok );
455
if ((((
PermissionToken
)tok).m_type & PermissionTokenType.DontKnow) != 0)
460
((
PermissionToken
)tok).m_type = PermissionTokenType.IUnrestricted;
462
((
PermissionToken
)tok).m_strTypeName = perm.GetType().AssemblyQualifiedName;
469
((
PermissionToken
)tok).m_type = PermissionTokenType.IUnrestricted;
471
((
PermissionToken
)tok).m_type = PermissionTokenType.Normal;
473
((
PermissionToken
)tok).m_strTypeName = cls.AssemblyQualifiedName;
478
return (
PermissionToken
)tok;
481
internal
PermissionToken
GetToken(String typeStr)
501
PermissionToken
.s_tokenSet.SetItem(((
PermissionToken
)tok).m_index, tok);
506
return (
PermissionToken
)tok;
509
internal
PermissionToken
BuiltInGetToken( int index, IPermission perm, Type cls )
511
PermissionToken
token = Volatile.Read(ref m_builtIn[index]);
534
PermissionToken
.s_tokenSet.SetItem( token.m_index, token );
system\security\securityelement.cs (2)
844
PermissionToken
token =
PermissionToken
.GetToken( ip );
system\security\securityruntime.cs (2)
78
PermissionToken
permToken,
108
PermissionToken
permToken,
system\security\util\tokenbasedset.cs (6)
400
PermissionToken
token =
PermissionToken
.GetToken(otherPerm);
418
PermissionToken
token =
PermissionToken
.GetToken(thisPerm);
447
PermissionToken
token =
PermissionToken
.GetToken(perm);
system\security\util\xmlutil.cs (1)
143
if (!
PermissionToken
.IsMscorlibClassName( fullClassName ))
system\threading\compressedstack.cs (4)
419
internal bool CheckDemand(CodeAccessPermission demand,
PermissionToken
permToken, RuntimeMethodHandleInternal rmh)
433
internal bool CheckDemandNoHalt(CodeAccessPermission demand,
PermissionToken
permToken, RuntimeMethodHandleInternal rmh)
485
internal void GetZoneAndOrigin(ArrayList zoneList, ArrayList originList,
PermissionToken
zoneToken,
PermissionToken
originToken)