3 writes to _mechanism
System.Net.Security (3)
System\Net\NegotiateAuthenticationPal.ManagedSpnego.cs (3)
93
_mechanism
= null;
300
_mechanism
= _optimisticMechanism;
306
_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();
290
if (
_mechanism
is null)
314
_mechanism
.Package != requestedPackage)
324
byte[]? response =
_mechanism
.GetOutgoingBlob(blob, out statusCode);
350
_mechanism
.GetMIC(_spnegoMechList, micBuffer);
384
if (!
_mechanism
.VerifyMIC(_spnegoMechList, mechListMIC))
390
(
_mechanism
as ManagedNtlmNegotiateAuthenticationPal)?.ResetKeys();
406
if (
_mechanism
is null || !_isAuthenticated)
411
return
_mechanism
.Wrap(input, outputWriter, requestEncryption, out isEncrypted);
416
if (
_mechanism
is null || !_isAuthenticated)
421
return
_mechanism
.Unwrap(input, outputWriter, out wasEncrypted);
426
if (
_mechanism
is null || !_isAuthenticated)
431
return
_mechanism
.UnwrapInPlace(input, out unwrappedOffset, out unwrappedLength, out wasEncrypted);
436
if (
_mechanism
is null || !_isAuthenticated)
441
return
_mechanism
.VerifyMIC(message, signature);
446
if (
_mechanism
is null || !_isAuthenticated)
451
_mechanism
.GetMIC(message, signature);