Επεξεργασία

Κοινή χρήση μέσω


KerberosSecurityTokenProvider Constructors

Definition

Initializes a new instance of the KerberosSecurityTokenProvider class.

Overloads

KerberosSecurityTokenProvider(String)

Initializes a new instance of the KerberosSecurityTokenProvider class using the specified service principal name.

KerberosSecurityTokenProvider(String, TokenImpersonationLevel)

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

KerberosSecurityTokenProvider(String, TokenImpersonationLevel, NetworkCredential)

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.

KerberosSecurityTokenProvider(String)

Source:
KerberosSecurityTokenProvider.cs
Source:
KerberosSecurityTokenProvider.cs

Initializes a new instance of the KerberosSecurityTokenProvider class using the specified service principal name.

public:
 KerberosSecurityTokenProvider(System::String ^ servicePrincipalName);
public KerberosSecurityTokenProvider (string servicePrincipalName);
new System.IdentityModel.Selectors.KerberosSecurityTokenProvider : string -> System.IdentityModel.Selectors.KerberosSecurityTokenProvider
Public Sub New (servicePrincipalName As String)

Parameters

servicePrincipalName
String

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

Exceptions

servicePrincipalName is null.

Remarks

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

Applies to

KerberosSecurityTokenProvider(String, TokenImpersonationLevel)

Source:
KerberosSecurityTokenProvider.cs
Source:
KerberosSecurityTokenProvider.cs

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

public:
 KerberosSecurityTokenProvider(System::String ^ servicePrincipalName, System::Security::Principal::TokenImpersonationLevel tokenImpersonationLevel);
public KerberosSecurityTokenProvider (string servicePrincipalName, System.Security.Principal.TokenImpersonationLevel tokenImpersonationLevel);
new System.IdentityModel.Selectors.KerberosSecurityTokenProvider : string * System.Security.Principal.TokenImpersonationLevel -> System.IdentityModel.Selectors.KerberosSecurityTokenProvider
Public Sub New (servicePrincipalName As String, tokenImpersonationLevel As TokenImpersonationLevel)

Parameters

servicePrincipalName
String

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

tokenImpersonationLevel
TokenImpersonationLevel

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

Exceptions

tokenImpersonationLevel is not Identification or Impersonation.

servicePrincipalName is null.

Remarks

The current context of the calling thread (DefaultNetworkCredentials) is used as a client identity.

Applies to

KerberosSecurityTokenProvider(String, TokenImpersonationLevel, NetworkCredential)

Source:
KerberosSecurityTokenProvider.cs
Source:
KerberosSecurityTokenProvider.cs

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.

public:
 KerberosSecurityTokenProvider(System::String ^ servicePrincipalName, System::Security::Principal::TokenImpersonationLevel tokenImpersonationLevel, System::Net::NetworkCredential ^ networkCredential);
public KerberosSecurityTokenProvider (string servicePrincipalName, System.Security.Principal.TokenImpersonationLevel tokenImpersonationLevel, System.Net.NetworkCredential networkCredential);
new System.IdentityModel.Selectors.KerberosSecurityTokenProvider : string * System.Security.Principal.TokenImpersonationLevel * System.Net.NetworkCredential -> System.IdentityModel.Selectors.KerberosSecurityTokenProvider
Public Sub New (servicePrincipalName As String, tokenImpersonationLevel As TokenImpersonationLevel, networkCredential As NetworkCredential)

Parameters

servicePrincipalName
String

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

tokenImpersonationLevel
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
NetworkCredential

A NetworkCredential that represents the identity of the KerberosRequestorSecurityToken.

Exceptions

tokenImpersonationLevel is not Identification or Impersonation.

servicePrincipalName is null.

Applies to