11 writes to token
System.IdentityModel (11)
System\IdentityModel\SspiHelper.cs (3)
348
this.
token
= data;
355
this.
token
= data;
362
this.
token
= size == 0 ? null : DiagnosticUtility.Utility.AllocateByteArray(size);
System\IdentityModel\SspiSafeHandles.cs (4)
299
outSecBuffer.
token
= DiagnosticUtility.Utility.AllocateByteArray(outSecBuffer.size);
304
outSecBuffer.
token
= null;
573
outSecBuffer.
token
= DiagnosticUtility.Utility.AllocateByteArray(outSecBuffer.size);
578
outSecBuffer.
token
= null;
System\IdentityModel\SspiWrapper.cs (4)
743
iBuffer.
token
= null;
747
iBuffer.
token
= DiagnosticUtility.Utility.AllocateByteArray(iBuffer.size);
766
iBuffer.
token
= buffers[j];
775
iBuffer.
token
= null;
29 references to token
System.IdentityModel (29)
System\IdentityModel\SspiSafeHandles.cs (18)
215
pinnedOutBytes = GCHandle.Alloc(outSecBuffer.
token
, GCHandleType.Pinned);
239
else if (securityBuffer.
token
== null || securityBuffer.
token
.Length == 0)
245
pinnedInBytes[index] = GCHandle.Alloc(securityBuffer.
token
, GCHandleType.Pinned);
246
inUnmanagedBuffer[index].token = Marshal.UnsafeAddrOfPinnedArrayElement(securityBuffer.
token
, securityBuffer.offset);
258
if (outSecBuffer.
token
== null || outSecBuffer.
token
.Length == 0)
264
outUnmanagedBuffer[0].token = Marshal.UnsafeAddrOfPinnedArrayElement(outSecBuffer.
token
, outSecBuffer.offset);
300
Marshal.Copy(outUnmanagedBuffer[0].token, outSecBuffer.
token
, 0, outSecBuffer.size);
495
pinnedOutBytes = GCHandle.Alloc(outSecBuffer.
token
, GCHandleType.Pinned);
519
else if (securityBuffer.
token
== null || securityBuffer.
token
.Length == 0)
525
pinnedInBytes[index] = GCHandle.Alloc(securityBuffer.
token
, GCHandleType.Pinned);
526
inUnmanagedBuffer[index].token = Marshal.UnsafeAddrOfPinnedArrayElement(securityBuffer.
token
, securityBuffer.offset);
539
if (outSecBuffer.
token
== null || outSecBuffer.
token
.Length == 0)
545
outUnmanagedBuffer[0].token = Marshal.UnsafeAddrOfPinnedArrayElement(outSecBuffer.
token
, outSecBuffer.offset);
574
Marshal.Copy(outUnmanagedBuffer[0].token, outSecBuffer.
token
, 0, outSecBuffer.size);
System\IdentityModel\SspiWrapper.cs (10)
714
if (iBuffer.
token
== null || iBuffer.
token
.Length == 0)
720
pinnedBuffers[i] = GCHandle.Alloc(iBuffer.
token
, GCHandleType.Pinned);
721
unmanagedBuffer[i].token = Marshal.UnsafeAddrOfPinnedArrayElement(iBuffer.
token
, iBuffer.offset);
722
buffers[i] = iBuffer.
token
;
748
Marshal.Copy(unmanagedBuffer[i].token, iBuffer.
token
, 0, iBuffer.size);
777
if (!(iBuffer.offset >= 0 && iBuffer.offset <= (iBuffer.
token
== null ? 0 : iBuffer.
token
.Length)))
783
if (!(iBuffer.size >= 0 && iBuffer.size <= (iBuffer.
token
== null ? 0 : iBuffer.
token
.Length - iBuffer.offset)))
System\IdentityModel\Tokens\KerberosRequestorSecurityToken.cs (1)
205
this.apreq = outSecurityBuffer.
token
;