Partager via


Méthode WindowsClaimsIdentity.CertificateLogon

Creates a T:Microsoft.IdentityModel.Claims.WindowsClaimsIdentity associated with a given X509 certificate.

Espace de noms: Microsoft.IdentityModel.Claims
Assembly : Microsoft.IdentityModel (dans microsoft.identitymodel.dll)

Utilisation

    Dim x509Certificate As X509Certificate2
Dim returnValue As WindowsClaimsIdentity

returnValue = WindowsClaimsIdentity.CertificateLogon(x509Certificate)

Syntaxe

'Déclaration
Public Shared Function CertificateLogon ( _
    x509Certificate As X509Certificate2 _
) As WindowsClaimsIdentity
public static WindowsClaimsIdentity CertificateLogon (
    X509Certificate2 x509Certificate
)
public:
static WindowsClaimsIdentity^ CertificateLogon (
    X509Certificate2^ x509Certificate
)
public static WindowsClaimsIdentity CertificateLogon (
    X509Certificate2 x509Certificate
)
public static function CertificateLogon (
    x509Certificate : X509Certificate2
) : WindowsClaimsIdentity

Paramètres

  • x509Certificate
    The certificate to use to map to the associated WindowsClaimsIdentity.

Exceptions

Type d'exception Condition

Cohérence de thread

Tous les membres statiques publics (partagés dans Visual Basic) de ce type sont thread-safe.Il n'est pas garanti que les membres d'instance soient thread-safe.

Plateformes

Plateformes de développement

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

Voir aussi

Référence

Classe WindowsClaimsIdentity
Membres WindowsClaimsIdentity
Espace de noms Microsoft.IdentityModel.Claims