Επεξεργασία

Κοινή χρήση μέσω


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

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()

Initializes a new instance of the WindowsSecurityToken class.

WindowsSecurityToken(WindowsIdentity, String, String)

Creates a new instance of WindowsSecurityToken.

WindowsSecurityToken(WindowsIdentity, String)

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

WindowsSecurityToken(WindowsIdentity)

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

Properties

AuthenticationType

Gets the authentication type for the token.

Id

Gets the unique identifier for the security token.

SecurityKeys

Gets the cryptographic keys associated with the security token.

ValidFrom

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

ValidTo

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

WindowsIdentity

Gets the Windows user associated with this security token.

Methods

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)
GetHashCode()

Serves as the default hash function.

(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(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()

Creates a shallow copy of the current Object.

(Inherited from Object)
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)

Applies to