WindowsSecurityToken Class
Represents a security token that is based on the identity of a Windows domain or user account.
Assembly: System.IdentityModel (in System.IdentityModel.dll)
System.IdentityModel.Tokens::SecurityToken
System.IdentityModel.Tokens::WindowsSecurityToken
System.IdentityModel.Tokens::KerberosReceiverSecurityToken
| 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 the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | 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(SecurityKeyIdentifierClause^) | Returns a value that indicates whether the key identifier for this instance can be resolved to the specified key identifier.(Inherited from SecurityToken.) |
![]() | MemberwiseClone() | |
![]() | ResolveKeyIdentifierClause(SecurityKeyIdentifierClause^) | 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.
Available since 3.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


