This documentation is archived and is not being maintained.
WindowsSecurityToken Class
Visual Studio 2010
Represents a security token that is based on the identity of a Windows domain or user account.
System::Object
System.IdentityModel.Tokens::SecurityToken
System.IdentityModel.Tokens::WindowsSecurityToken
System.IdentityModel.Tokens::KerberosReceiverSecurityToken
System.IdentityModel.Tokens::SecurityToken
System.IdentityModel.Tokens::WindowsSecurityToken
System.IdentityModel.Tokens::KerberosReceiverSecurityToken
Assembly: System.IdentityModel (in System.IdentityModel.dll)
The WindowsSecurityToken type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | WindowsSecurityToken() | Initializes a new instance of the WindowsSecurityToken class. |
![]() | WindowsSecurityToken(WindowsIdentity) | Initializes a new instance of the WindowsSecurityToken class using the Windows user. |
![]() | WindowsSecurityToken(WindowsIdentity, String) | Initializes a new instance of the WindowsSecurityToken class using the Windows user. |
![]() | WindowsSecurityToken(WindowsIdentity, String, String) | Creates a new instance of WindowsSecurityToken. |
| Name | Description | |
|---|---|---|
![]() | AuthenticationType | Gets the authentication type for the token. |
![]() | Id | Gets the unique identifier for the security token. (Overrides SecurityToken::Id.) |
![]() | SecurityKeys | Gets the cryptographic keys associated with the security token. (Overrides SecurityToken::SecurityKeys.) |
![]() | ValidFrom | Gets the first instant in time at which this security token is valid. (Overrides SecurityToken::ValidFrom.) |
![]() | ValidTo | Gets the last instant in time at which this security token is valid. (Overrides SecurityToken::ValidTo.) |
![]() | WindowsIdentity | Gets the Windows user associated with this security token. |
| Name | Description | |
|---|---|---|
![]() | CanCreateKeyIdentifierClause<T> | Gets a value that indicates whether this security token is capable of creating the specified key identifier. (Inherited from SecurityToken.) |
![]() | CreateKeyIdentifierClause<T> | Creates the specified key identifier clause. (Inherited from SecurityToken.) |
![]() | Dispose | Releases all resources used by the WindowsSecurityToken. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Initialize(String, DateTime, DateTime, WindowsIdentity, Boolean) | Initializes a new instance of the WindowsSecurityToken class using the specified unique identifier, Windows user, and the first and last instants in time when the security token is valid. |
![]() | Initialize(String, String, DateTime, DateTime, WindowsIdentity, Boolean) | Initializes a new instance of the WindowsSecurityToken class. |
![]() | MatchesKeyIdentifierClause | Returns a value that indicates whether the key identifier for this instance can be resolved to the specified key identifier. (Inherited from SecurityToken.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ResolveKeyIdentifierClause | Gets the key for the specified key identifier clause. (Inherited from SecurityToken.) |
![]() | ThrowIfDisposed | Throws an exception if the Dispose method has been called for this instance. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Typically, application developers do not need to use the WindowsSecurityToken class, unless a Web service must gain access to details about the Windows domain or user account associated with the WindowsSecurityToken security token. To get the details of the Windows domain or user account, access the WindowsIdentity property.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:


