1 write to _Context
System (1)
net\System\Net\SecureProtocols\_NegoState.cs (1)
217
_Context
= new NTAuthentication(isServer, package, credential, servicePrincipalName, flags, channelBinding);
39 references to _Context
System (39)
net\System\Net\SecureProtocols\_NegoState.cs (39)
137
if (
_Context
!= null &&
_Context
.IsValidContext) {
156
if (
_Context
!= null && IsServer != isServer) {
233
if (_Exception != null &&
_Context
!= null) {
234
_Context
.CloseContext();
247
return
_Context
!= null && HandshakeComplete && _Exception == null && _RemoteOk;
259
if (
_Context
.IsNTLM)
262
return
_Context
.IsMutualAuthFlag;
268
return IsAuthenticated &&
_Context
.IsConfidentialityFlag;
274
return IsAuthenticated && (
_Context
.IsIntegrityFlag ||
_Context
.IsConfidentialityFlag);
280
return
_Context
!= null &&
_Context
.IsServer;
289
return (
_Context
.IsConfidentialityFlag ||
_Context
.IsIntegrityFlag);
305
return (
_Context
.IsDelegationFlag &&
_Context
.ProtocolName != NegotiationInfoClass.NTLM) ? TokenImpersonationLevel.Delegation
306
:
_Context
.IsIdentifyFlag? TokenImpersonationLevel.Identification
315
return
_Context
.IsCompleted &&
_Context
.IsValidContext;
327
string name =
_Context
.IsServer?
_Context
.AssociatedName:
_Context
.Spn;
330
protocol =
_Context
.ProtocolName;
332
if (
_Context
.IsServer) {
335
token =
_Context
.GetContextToken();
336
string authtype =
_Context
.ProtocolName;
374
if (
_Context
!= null) {
375
_Context
.CloseContext();
389
if (
_Context
.IsServer)
450
if (
_Context
.IsKerberos)
468
string clientSpn =
_Context
.ClientSpecifiedSpn;
505
if (
_Context
.IsServer && !CheckSpn())
537
ProtectionLevel result =
_Context
.IsConfidentialityFlag? ProtectionLevel.EncryptAndSign:
_Context
.IsIntegrityFlag? ProtectionLevel.Sign: ProtectionLevel.None;
557
if (
_Context
.IsServer)
806
byte[] message =
_Context
.GetOutgoingBlob(incomingBlob, false, out statusCode);
836
return
_Context
.Encrypt(buffer, offset, count, ref outBuffer, _WriteSequenceNumber);
849
return
_Context
.Decrypt(buffer, offset, count, out newOffset, _ReadSequenceNumber);