X509WindowsSecurityToken Klasse
Definition
Stellt ein Sicherheitstoken dar, das auf einem X.509-Zertifikat basiert. Das Zertifikat ist einem Windows-Domänenbenutzer oder einem lokalen Benutzerkonto zugeordnet.Represents a security token that is based upon an X.509 certificate and that the certificate is mapped to a Windows domain user or local computer user account.
public ref class X509WindowsSecurityToken : System::IdentityModel::Tokens::X509SecurityToken
public class X509WindowsSecurityToken : System.IdentityModel.Tokens.X509SecurityToken
type X509WindowsSecurityToken = class
inherit X509SecurityToken
Public Class X509WindowsSecurityToken
Inherits X509SecurityToken
- Vererbung
Hinweise
Anwendungsentwickler benötigen die X509WindowsSecurityToken-Klasse in der Regel nur, wenn ein Webdienst auf Details zu einem X.509-Zertifikat zugreifen muss, auf das in einer eingehenden SOAP-Nachricht oder in der Domäne bzw. dem Computerkonto verwiesen wird, der/dem das Zertifikat zugeordnet ist.Typically, application developers do not need to use the X509WindowsSecurityToken class, unless a Web service must gain access to details about a X.509 certificate referenced in an incoming SOAP message or the domain or computer account that the certificate is mapped to. Greifen Sie auf die Certificate-Eigenschaft zu, um die Details des X.509-Zertifikats abzurufen.To get the details of the X.509 certificate, access the Certificate property. Zum Abrufen der Benutzer-ID verwenden Sie die WindowsIdentity-Eigenschaft.To get the user identity, see the WindowsIdentity property.
Konstruktoren
X509WindowsSecurityToken(X509Certificate2, WindowsIdentity) |
Initialisiert eine neue Instanz der X509WindowsSecurityToken-Klasse unter Verwendung des angegebenen X.509-Zertifikats und der Windows-Domäne bzw. des Computerkontos.Initializes a new instance of the X509WindowsSecurityToken class using the specified X.509 certificate and Windows domain or computer account. |
X509WindowsSecurityToken(X509Certificate2, WindowsIdentity, String) |
Initialisiert eine neue Instanz der X509WindowsSecurityToken-Klasse unter Verwendung des angegebenen X.509-Zertifikats, der Windows-Domäne bzw. des Computerkontos und eines eindeutigen Bezeichners.Initializes a new instance of the X509WindowsSecurityToken class using the specified X.509 certificate, Windows domain or computer account, and unique identifier. |
X509WindowsSecurityToken(X509Certificate2, WindowsIdentity, String, String) |
Erstellt eine neue Instanz von X509WindowsSecurityToken.Creates a new instance of X509WindowsSecurityToken. |
Eigenschaften
AuthenticationType |
Ruft den Authentifizierungstyp für das Token ab.Gets the authentication type for the token. |
Certificate |
Ruft das dem Sicherheitstoken zugeordnete X.509-Zertifikat ab.Gets the X.509 certificate associated with the security token. (Geerbt von X509SecurityToken) |
Id |
Ruft einen eindeutigen Bezeichner für das Sicherheitstoken ab.Gets a unique identifier of the security token. (Geerbt von X509SecurityToken) |
SecurityKeys |
Ruft die dem Sicherheitstoken zugeordneten kryptografischen Schlüssel ab.Gets the cryptographic keys associated with the security token. (Geerbt von X509SecurityToken) |
ValidFrom |
Ruft den ersten Zeitpunkt ab, zu dem dieses Sicherheitstoken gültig ist.Gets the first instant in time at which this security token is valid. (Geerbt von X509SecurityToken) |
ValidTo |
Ruft den spätest möglichen Zeitpunkt ab, zu dem dieses Sicherheitstoken gültig ist.Gets the last instant in time at which this security token is valid. (Geerbt von X509SecurityToken) |
WindowsIdentity |
Ruft die Identität einer Windows-Domäne oder eines Computerkontos ab.Gets the identity of a Windows domain or computer account. |
Methoden
CanCreateKeyIdentifierClause<T>() |
Ruft einen Wert ab, der angibt, ob dieses Sicherheitstoken den angegebenen Schlüsselbezeichner erstellen kann.Gets a value indicating whether this security token is capable of creating the specified key identifier. (Geerbt von X509SecurityToken) |
CreateKeyIdentifierClause<T>() |
Erstellt die angegebene Schlüsselbezeichnerklausel.Creates the specified key identifier clause. (Geerbt von X509SecurityToken) |
Dispose() |
Gibt alle vom X509WindowsSecurityToken verwendeten Ressourcen frei.Releases all resources used by the X509WindowsSecurityToken. |
Dispose() |
Gibt alle vom X509SecurityToken verwendeten Ressourcen frei.Releases all resources used by the X509SecurityToken. (Geerbt von X509SecurityToken) |
Equals(Object) |
Bestimmt, ob das angegebene Objekt mit dem aktuellen Objekt identisch ist.Determines whether the specified object is equal to the current object. (Geerbt von Object) |
GetHashCode() |
Fungiert als Standardhashfunktion.Serves as the default hash function. (Geerbt von Object) |
GetType() |
Ruft den Type der aktuellen Instanz ab.Gets the Type of the current instance. (Geerbt von Object) |
MatchesKeyIdentifierClause(SecurityKeyIdentifierClause) |
Gibt einen Wert zurück, der angibt, ob der Schlüsselbezeichner für diese Instanz mit dem angegebenen Schlüsselbezeichner übereinstimmt.Returns a value indicating whether the key identifier for this instance is equal to the specified key identifier. (Geerbt von X509SecurityToken) |
MemberwiseClone() |
Erstellt eine flache Kopie des aktuellen Object.Creates a shallow copy of the current Object. (Geerbt von Object) |
ResolveKeyIdentifierClause(SecurityKeyIdentifierClause) |
Ruft den Schlüssel für die angegebene Schlüsselbezeichnerklausel ab.Gets the key for the specified key identifier clause. (Geerbt von SecurityToken) |
ThrowIfDisposed() |
Löst eine Ausnahme aus, wenn die ThrowIfDisposed()-Methode für diese Instanz aufgerufen wurde.Throws an exception if the ThrowIfDisposed() method has been called for this instance. (Geerbt von X509SecurityToken) |
ToString() |
Gibt eine Zeichenfolge zurück, die das aktuelle Objekt darstellt.Returns a string that represents the current object. (Geerbt von Object) |