KerberosSecurityTokenProvider Constructor (String)

 
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.

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

public KerberosSecurityTokenProvider(
	string servicePrincipalName
)

Parameters

servicePrincipalName
Type: System.String

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

Exception Condition
ArgumentNullException

servicePrincipalName is null.

This constructor sets the impersonation level that is allowed by a client to TokenImpersonationLevelIdentification. The current context of the calling thread (DefaultNetworkCredentials) is used as a client identity.

.NET Framework
Available since 3.0
Return to top
Show: