X509SubjectKeyIdentifierClause.Matches(X509Certificate2) Método

Definição

Retorna um valor que indica se o identificador de chave dessa instância é equivalente ao identificador de chave do certificado X.509 especificado.Returns a value that indicates whether the key identifier for this instance is equivalent to the key identifier of the specified X.509 certificate.

public:
 bool Matches(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public bool Matches (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
override this.Matches : System.Security.Cryptography.X509Certificates.X509Certificate2 -> bool
Public Function Matches (certificate As X509Certificate2) As Boolean

Parâmetros

certificate
X509Certificate2

Um X509Certificate2 que contém o certificado X.509 a ser comparado.An X509Certificate2 that contains the X.509 certificate to compare.

Retornos

Boolean

true se o certificate tiver o mesmo identificador de chave da entidade que a instância atual, caso contrário, false.true if certificate has the same subject key identifier as the current instance; otherwise, false.

Exceções

certificate é null.certificate is null.

Comentários

O Matches método compara a X509SubjectKeyIdentifierExtension extensão para os dois certificados X. 509.The Matches method compares the X509SubjectKeyIdentifierExtension extension for the two X.509 certificates.

Aplica-se a