Muokkaa

Jaa


NegotiateAuthenticationClientOptions Class

Definition

Represents a property bag for the client side of an authentication exchange.

public ref class NegotiateAuthenticationClientOptions
public class NegotiateAuthenticationClientOptions
type NegotiateAuthenticationClientOptions = class
Public Class NegotiateAuthenticationClientOptions
Inheritance
NegotiateAuthenticationClientOptions

Remarks

This property bag is used as argument for NegotiateAuthentication constructor for initializing a client-side authentication.

Initial values of the properties are set for an authentication using default network credentials. If you want to explicitly authenticate using a user name, password and domain combination then set the Credential property appropriately.

Typical usage of the client-side authentication will also require specifying the the TargetName property. While it may be omitted in some scenarios it is usually required to be set to a valid value like HOST/contoso.com or HTTP/www.contoso.com.

When the authentication is wrapped in a secure channel, like TLS, the channel binding can provide additional protection by strongly binding the authentication to a given transport channel. This is handled by setting the Binding property. For SslStream the channel binding could be obtained through the TransportContext property and calling the GetChannelBinding(ChannelBindingKind) method.

Constructors

NegotiateAuthenticationClientOptions()

Initializes a new instance of the NegotiateAuthenticationClientOptions class.

Properties

AllowedImpersonationLevel

Gets or sets a value that indicates how the server can use the client's credentials to access resources.

Binding

Gets or sets the channel binding that's used for extended protection.

Credential

Gets or sets the network credential that's used to establish the identity of the client. The default value is DefaultNetworkCredentials.

Package

Gets or sets the GSSAPI authentication package used for the authentication. Common values are Negotiate, NTLM, or Kerberos. The default value is Negotiate.

RequiredProtectionLevel

Gets or sets the required level of protection of the authentication exchange and any further data exchange. The default value is None.

RequireMutualAuthentication

Gets or sets a value that indicates whether mutual authentication is required between the client and server.

TargetName

Gets or sets the service principal name (SPN) that uniquely identifies the server for authentication.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to