KerberosSecurityTokenProvider Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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)
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)
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
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示