3 writes to _mechanism
System.Net.Security (3)
System\Net\NegotiateAuthenticationPal.ManagedSpnego.cs (3)
93
_mechanism
= null;
312
_mechanism
= _optimisticMechanism;
318
_mechanism
= CreateMechanismForPackage(requestedPackage);
24 references to _mechanism
System.Net.Security (24)
System\Net\NegotiateAuthenticationPal.ManagedSpnego.cs (24)
72
public override bool IsAuthenticated => _isAuthenticated &&
_mechanism
?.IsAuthenticated == true;
73
public override bool IsSigned =>
_mechanism
?.IsSigned ?? false;
74
public override bool IsEncrypted =>
_mechanism
?.IsEncrypted ?? false;
75
public override bool IsMutuallyAuthenticated =>
_mechanism
?.IsMutuallyAuthenticated ?? false;
76
public override string Package =>
_mechanism
?.Package ?? NegotiationInfoClass.Negotiate;
78
public override IIdentity RemoteIdentity =>
_mechanism
?.RemoteIdentity ?? throw new InvalidOperationException();
79
public override System.Security.Principal.TokenImpersonationLevel ImpersonationLevel =>
_mechanism
?.ImpersonationLevel ?? System.Security.Principal.TokenImpersonationLevel.Impersonation;
92
_mechanism
?.Dispose();
302
if (
_mechanism
is null)
326
_mechanism
.Package != requestedPackage)
336
byte[]? response =
_mechanism
.GetOutgoingBlob(blob, out statusCode);
362
_mechanism
.GetMIC(_spnegoMechList, micBuffer);
396
if (!
_mechanism
.VerifyMIC(_spnegoMechList, mechListMIC))
402
(
_mechanism
as ManagedNtlmNegotiateAuthenticationPal)?.ResetKeys();
418
if (
_mechanism
is null || !_isAuthenticated)
423
return
_mechanism
.Wrap(input, outputWriter, requestEncryption, out isEncrypted);
428
if (
_mechanism
is null || !_isAuthenticated)
433
return
_mechanism
.Unwrap(input, outputWriter, out wasEncrypted);
438
if (
_mechanism
is null || !_isAuthenticated)
443
return
_mechanism
.UnwrapInPlace(input, out unwrappedOffset, out unwrappedLength, out wasEncrypted);
448
if (
_mechanism
is null || !_isAuthenticated)
453
return
_mechanism
.VerifyMIC(message, signature);
458
if (
_mechanism
is null || !_isAuthenticated)
463
_mechanism
.GetMIC(message, signature);