Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Net.​Security.​NegotiateAuthentication

Assembly: System.Net.Security

Inheritance: object → NegotiateAuthentication

Implemented Interfaces

Represents a stateful authentication exchange that uses the Negotiate, NTLM, or Kerberos security protocols to authenticate the client or server, in client-server communication.

Properties

Gets a value that indicates the negotiated level of impersonation.
public bool
IsAuthenticated
Gets a value that indicates whether authentication was successfully completed and the session was established.
public bool
IsEncrypted
Gets a value that indicates whether data encryption was negotiated.
public bool
IsMutuallyAuthenticated
Gets a value that indicates whether both server and client have been authenticated.
public bool
IsServer
Gets a value that indicates whether the local side of the authentication is representing the server.
public bool
IsSigned
Gets a value that indicates whether data signing was negotiated.
public string
Package
Gets the name of the negotiated authentication package.
ProtectionLevel
Indicates the negotiated level of protection.
RemoteIdentity
Gets information about the identity of the remote party.
public string
TargetName
Gets the target name (service principal name) of the server.

Methods

public void
ComputeIntegrityCheck​(ReadOnlySpan<​byte> message, Buffers.​IBufferWriter<​byte> signatureWriter)
Computes the integrity check of a given message.
message Input message for MIC calculation.
signatureWriter Buffer writer where the MIC is written.
public void
Dispose​()
Releases the unmanaged resources used by the <see cref="T:System.Net.Security.NegotiateAuthentication" /> and optionally releases the managed resources.
public byte[]
GetOutgoingBlob​(ReadOnlySpan<​byte> incomingBlob, NegotiateAuthenticationStatusCode& statusCode)
public string
GetOutgoingBlob​(string incomingBlob, NegotiateAuthenticationStatusCode& statusCode)
Unwrap​(ReadOnlySpan<​byte> input, Buffers.​IBufferWriter<​byte> outputWriter, Boolean& wasEncrypted)
UnwrapInPlace​(Span<​byte> input, Int32& unwrappedOffset, Int32& unwrappedLength, Boolean& wasEncrypted)
public bool
VerifyIntegrityCheck​(ReadOnlySpan<​byte> message, ReadOnlySpan<​byte> signature)
Verifies the message integrity check of a given message.
Returns <see langword="true" /> if the MIC is successfully verified, otherwise <see langword="false" /> .
message Input message for MIC calculation.
signature MIC to be verified.
Wrap​(ReadOnlySpan<​byte> input, Buffers.​IBufferWriter<​byte> outputWriter, bool requestEncryption, Boolean& isEncrypted)
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object