Returns a collection of claims from an X509 certificate.
Namespace: Microsoft.IdentityModel.Claims
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim certificate As X509Certificate2
Dim issuer As String
Dim returnValue As IEnumerable(Of Claim)

returnValue = ClaimsIdentity.GetClaimsFromCertificate(certificate, issuer)

Syntax

Visual Basic
Public Shared Function GetClaimsFromCertificate ( _
		certificate As X509Certificate2, _
		issuer As String _
) As IEnumerable(Of Claim)
C#
public static IEnumerable<Claim> GetClaimsFromCertificate (
		X509Certificate2 certificate,
		string issuer
)
C++
public:
static IEnumerable<Claim^>^ GetClaimsFromCertificate (
		X509Certificate2^ certificate, 
		String^ issuer
)
J#
public static IEnumerable<Claim> GetClaimsFromCertificate (
		X509Certificate2 certificate, 
		String issuer
)
JScript
public static function GetClaimsFromCertificate (
		certificate : X509Certificate2, 
		issuer : String
) : IEnumerable<Claim>

Parameters

certificate

The certificate from which the claims identity will be generated.

issuer

The issuer name to be used for the claims.

Return Value

A collection of claims.

Exceptions

Exception type Condition

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

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

See Also