Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

KerberosSecurityTokenProvider Class

Represents a security token provider that provides KerberosRequestorSecurityToken security tokens for a SOAP message sender.

System.Object
  System.IdentityModel.Selectors.SecurityTokenProvider
    System.IdentityModel.Selectors.KerberosSecurityTokenProvider

Namespace:  System.IdentityModel.Selectors
Assembly:  System.IdentityModel (in System.IdentityModel.dll)
public class KerberosSecurityTokenProvider : SecurityTokenProvider

The KerberosSecurityTokenProvider type exposes the following members.

  NameDescription
Public methodKerberosSecurityTokenProvider(String)Initializes a new instance of the KerberosSecurityTokenProvider class using the specified service principal name.
Public methodKerberosSecurityTokenProvider(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 methodKerberosSecurityTokenProvider(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.
Top
  NameDescription
Public propertyNetworkCredentialGets the identity of the KerberosRequestorSecurityToken security token.
Public propertyServicePrincipalNameGets the service principal name of the KerberosRequestorSecurityToken security token to get.
Public propertySupportsTokenCancellationGets a value that indicates whether the security token can be cancelled. (Inherited from SecurityTokenProvider.)
Public propertySupportsTokenRenewalGets a value that indicates whether the security token is renewable. (Inherited from SecurityTokenProvider.)
Public propertyTokenImpersonationLevelGets a value that specifies the degree to which a recipient of the KerberosRequestorSecurityToken security token can act on behalf of the client.
Top
  NameDescription
Public methodBeginCancelTokenBegins an asynchronous operation to cancel a security token. (Inherited from SecurityTokenProvider.)
Protected methodBeginCancelTokenCoreBegins an asynchronous operation to cancel a security token. (Inherited from SecurityTokenProvider.)
Public methodBeginGetTokenBegins an asynchronous operation to get a security token. (Inherited from SecurityTokenProvider.)
Protected methodBeginGetTokenCoreBegins an asynchronous operation to get a security token. (Inherited from SecurityTokenProvider.)
Public methodBeginRenewTokenBegins an asynchronous operation that renews a security token. (Inherited from SecurityTokenProvider.)
Protected methodBeginRenewTokenCoreBegins an asynchronous operation that renews a security token. (Inherited from SecurityTokenProvider.)
Public methodCancelTokenCancels a security token. (Inherited from SecurityTokenProvider.)
Protected methodCancelTokenCoreCancels a security token. (Inherited from SecurityTokenProvider.)
Public methodEndCancelTokenCompletes an asynchronous operation to cancel a security token. (Inherited from SecurityTokenProvider.)
Protected methodEndCancelTokenCoreCompletes an asynchronous operation to cancel a security token. (Inherited from SecurityTokenProvider.)
Public methodEndGetTokenCompletes an asynchronous operation to get a security token. (Inherited from SecurityTokenProvider.)
Protected methodEndGetTokenCoreCompletes an asynchronous operation to get a security token. (Inherited from SecurityTokenProvider.)
Public methodEndRenewTokenCompletes an asynchronous operation to renew a security token. (Inherited from SecurityTokenProvider.)
Protected methodEndRenewTokenCoreCompletes an asynchronous operation to renew the security token. (Inherited from SecurityTokenProvider.)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTokenGets a security token. (Inherited from SecurityTokenProvider.)
Protected methodGetTokenCoreGets a KerberosRequestorSecurityToken security token. (Overrides SecurityTokenProvider.GetTokenCore(TimeSpan).)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRenewTokenRenews a security token. (Inherited from SecurityTokenProvider.)
Protected methodRenewTokenCoreRenews a security token. (Inherited from SecurityTokenProvider.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

In most instances the KerberosSecurityTokenProvider class doesn't need to be called directly, as it is called when a client sends a SOAP message that requires a KerberosRequestorSecurityToken security token. Specifically, a client specifies the type of security token needed using the ClientCredentials class and the ClientCredentials class calls the GetToken method to get a security token. When the security token needed is a KerberosRequestorSecurityToken security token, the GetToken method calls the GetTokenCore(TimeSpan) method.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.