3 writes to _mechanism
System.Net.Security (3)
System\Net\NegotiateAuthenticationPal.ManagedSpnego.cs (3)
93
_mechanism
= null;
311
_mechanism
= _optimisticMechanism;
317
_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();
301
if (
_mechanism
is null)
325
_mechanism
.Package != requestedPackage)
335
byte[]? response =
_mechanism
.GetOutgoingBlob(blob, out statusCode);
361
_mechanism
.GetMIC(_spnegoMechList, micBuffer);
395
if (!
_mechanism
.VerifyMIC(_spnegoMechList, mechListMIC))
401
(
_mechanism
as ManagedNtlmNegotiateAuthenticationPal)?.ResetKeys();
417
if (
_mechanism
is null || !_isAuthenticated)
422
return
_mechanism
.Wrap(input, outputWriter, requestEncryption, out isEncrypted);
427
if (
_mechanism
is null || !_isAuthenticated)
432
return
_mechanism
.Unwrap(input, outputWriter, out wasEncrypted);
437
if (
_mechanism
is null || !_isAuthenticated)
442
return
_mechanism
.UnwrapInPlace(input, out unwrappedOffset, out unwrappedLength, out wasEncrypted);
447
if (
_mechanism
is null || !_isAuthenticated)
452
return
_mechanism
.VerifyMIC(message, signature);
457
if (
_mechanism
is null || !_isAuthenticated)
462
_mechanism
.GetMIC(message, signature);