Partilhar via


X509Util.GetKeyIdentifier Method (X509Certificate2, X509CertificateSkiMode)

Gets the subject key identifier using the specified algorithm for the specified X.509 certificate.

Namespace: Microsoft.Web.Services3.Security.X509
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim certificate As X509Certificate2
Dim skiMode As X509CertificateSkiMode
Dim returnValue As KeyIdentifier
returnValue = X509Util.GetKeyIdentifier(certificate, skiMode)

Syntax

'Declaration
Overloads Public Shared Function GetKeyIdentifier( _
    ByVal certificate As X509Certificate2, _
    ByVal skiMode As X509CertificateSkiMode _
) As KeyIdentifier
public static KeyIdentifier GetKeyIdentifier(
    X509Certificate2 certificate, 
    X509CertificateSkiMode skiMode
);
public:
static KeyIdentifier^ GetKeyIdentifier(
    X509Certificate2^ certificate,
    X509CertificateSkiMode skiMode
);
public static KeyIdentifier GetKeyIdentifier(
    X509Certificate2 certificate, 
    X509CertificateSkiMode skiMode
);
public static function GetKeyIdentifier(
     certificate : X509Certificate2, 
     skiMode : X509CertificateSkiMode
) : KeyIdentifier;

Parameters

  • certificate
    A System.Security.Cryptography.X509Certificates.X509Certificate2 that represents the X.509 certificate to get the subject key identifier for.

Return Value

A KeyIdentifier that represents the subject key identifier for the certificate parameter.

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 XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

X509Util Class
X509Util Members
Microsoft.Web.Services3.Security.X509 Namespace