WindowsSecurityToken WindowsSecurityToken WindowsSecurityToken WindowsSecurityToken Class

Definition

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
public class WindowsSecurityToken : System.IdentityModel.Tokens.SecurityToken
type WindowsSecurityToken = class
    inherit SecurityToken
Public Class WindowsSecurityToken
Inherits SecurityToken
Inheritance
WindowsSecurityTokenWindowsSecurityTokenWindowsSecurityTokenWindowsSecurityToken
Derived

Remarks

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.

Constructors

WindowsSecurityToken() WindowsSecurityToken() WindowsSecurityToken() WindowsSecurityToken()

Initializes a new instance of the WindowsSecurityToken class.

WindowsSecurityToken(WindowsIdentity) WindowsSecurityToken(WindowsIdentity) WindowsSecurityToken(WindowsIdentity) WindowsSecurityToken(WindowsIdentity)

Initializes a new instance of the WindowsSecurityToken class using the Windows user.

WindowsSecurityToken(WindowsIdentity, String) WindowsSecurityToken(WindowsIdentity, String) WindowsSecurityToken(WindowsIdentity, String) WindowsSecurityToken(WindowsIdentity, String)

Initializes a new instance of the WindowsSecurityToken class using the Windows user.

WindowsSecurityToken(WindowsIdentity, String, String) WindowsSecurityToken(WindowsIdentity, String, String) WindowsSecurityToken(WindowsIdentity, String, String) WindowsSecurityToken(WindowsIdentity, String, String)

Creates a new instance of WindowsSecurityToken.

Properties

AuthenticationType AuthenticationType AuthenticationType AuthenticationType

Gets the authentication type for the token.

Id Id Id Id

Gets the unique identifier for the security token.

SecurityKeys SecurityKeys SecurityKeys SecurityKeys

Gets the cryptographic keys associated with the security token.

ValidFrom ValidFrom ValidFrom ValidFrom

Gets the first instant in time at which this security token is valid.

ValidTo ValidTo ValidTo ValidTo

Gets the last instant in time at which this security token is valid.

WindowsIdentity WindowsIdentity WindowsIdentity WindowsIdentity

Gets the Windows user associated with this security token.

Methods

CanCreateKeyIdentifierClause<T>() CanCreateKeyIdentifierClause<T>() CanCreateKeyIdentifierClause<T>() CanCreateKeyIdentifierClause<T>()

Gets a value that indicates whether this security token is capable of creating the specified key identifier.

(Inherited from SecurityToken)
CreateKeyIdentifierClause<T>() CreateKeyIdentifierClause<T>() CreateKeyIdentifierClause<T>() CreateKeyIdentifierClause<T>()

Creates the specified key identifier clause.

(Inherited from SecurityToken)
Dispose() Dispose() Dispose() Dispose()

Releases all resources used by the WindowsSecurityToken.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
Initialize(String, DateTime, DateTime, WindowsIdentity, Boolean) Initialize(String, DateTime, DateTime, WindowsIdentity, Boolean) Initialize(String, DateTime, DateTime, WindowsIdentity, Boolean) 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) Initialize(String, String, DateTime, DateTime, WindowsIdentity, Boolean) Initialize(String, String, DateTime, DateTime, WindowsIdentity, Boolean) Initialize(String, String, DateTime, DateTime, WindowsIdentity, Boolean)

Initializes a new instance of the WindowsSecurityToken class.

MatchesKeyIdentifierClause(SecurityKeyIdentifierClause) MatchesKeyIdentifierClause(SecurityKeyIdentifierClause) MatchesKeyIdentifierClause(SecurityKeyIdentifierClause) 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() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ResolveKeyIdentifierClause(SecurityKeyIdentifierClause) ResolveKeyIdentifierClause(SecurityKeyIdentifierClause) ResolveKeyIdentifierClause(SecurityKeyIdentifierClause) ResolveKeyIdentifierClause(SecurityKeyIdentifierClause)

Gets the key for the specified key identifier clause.

(Inherited from SecurityToken)
ThrowIfDisposed() ThrowIfDisposed() ThrowIfDisposed() ThrowIfDisposed()

Throws an exception if the Dispose() method has been called for this instance.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to