WindowsSecurityToken Class
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.
Represents a security token that is based on the identity of a Windows domain or user account.
public ref class WindowsSecurityToken : System::IdentityModel::Tokens::SecurityToken, IDisposable
public class WindowsSecurityToken : System.IdentityModel.Tokens.SecurityToken, IDisposable
type WindowsSecurityToken = class
inherit SecurityToken
interface IDisposable
Public Class WindowsSecurityToken
Inherits SecurityToken
Implements IDisposable
- Inheritance
- Derived
- Implements
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 |
Initializes a new instance of the WindowsSecurityToken class. |
Windows |
Creates a new instance of WindowsSecurityToken. |
Windows |
Initializes a new instance of the WindowsSecurityToken class using the Windows user. |
Windows |
Initializes a new instance of the WindowsSecurityToken class using the Windows user. |
Authentication |
Gets the authentication type for the token. |
Id |
Gets the unique identifier for the security token. |
Security |
Gets the cryptographic keys associated with the security token. |
Valid |
Gets the first instant in time at which this security token is valid. |
Valid |
Gets the last instant in time at which this security token is valid. |
Windows |
Gets the Windows user associated with this security token. |
Can |
Gets a value that indicates whether this security token is capable of creating the specified key identifier. (Inherited from SecurityToken) |
Create |
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) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Initialize(String, Date |
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, Date |
Initializes a new instance of the WindowsSecurityToken class. |
Matches |
Returns a value that indicates whether the key identifier for this instance can be resolved to the specified key identifier. (Inherited from SecurityToken) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
Resolve |
Gets the key for the specified key identifier clause. (Inherited from SecurityToken) |
Throw |
Throws an exception if the Dispose() method has been called for this instance. |
To |
Returns a string that represents the current object. (Inherited from Object) |
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: