KerberosSecurityTokenProvider Constructor (String, TokenImpersonationLevel, NetworkCredential)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the KerberosSecurityTokenProvider class using the specified service principal name, client identity, and whether a client allows a recipient of the KerberosRequestorSecurityToken security token to impersonate the client's credentials.

Namespace:   System.IdentityModel.Selectors
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public KerberosSecurityTokenProvider(
	string servicePrincipalName,
	TokenImpersonationLevel tokenImpersonationLevel,
	NetworkCredential networkCredential
)

Parameters

servicePrincipalName
Type: System.String

The service principal name to get a KerberosRequestorSecurityToken security token for.

tokenImpersonationLevel
Type: System.Security.Principal.TokenImpersonationLevel

A TokenImpersonationLevel that specifies the degree to which a recipient of the KerberosRequestorSecurityToken security token can act on behalf of the client process.

networkCredential
Type: System.Net.NetworkCredential

A NetworkCredential that represents the identity of the KerberosRequestorSecurityToken.

Exception Condition
ArgumentOutOfRangeException

tokenImpersonationLevel is not Identification or Impersonation.

ArgumentNullException

servicePrincipalName is null.

.NET Framework
Available since 3.0
Return to top
Show: