X509IssuerSerialKeyIdentifierClause.Matches Método

Definição

Retorna um valor que indica se o identificador de chave desta instância corresponde ao objeto especificado.Returns a value that indicates whether the key identifier for this instance matches the specified object.

Sobrecargas

Matches(X509Certificate2)

Retorna um valor que indica se o identificador de chave desta instância corresponde ao certificado X.509 especificado.Returns a value that indicates whether the key identifier for this instance matches the specified X.509 certificate.

Matches(SecurityKeyIdentifierClause)

Retorna um valor que indica se o identificador de chave dessa instância corresponde ao identificador de chave especificado.Returns a value that indicates whether the key identifier for this instance matches the specified key identifier.

Matches(String, String)

Retorna um valor que indica se o identificador de chave desta instância é equivalente ao nome do emissor e ao número de série do emissor especificados.Returns a value that indicates whether the key identifier for this instance is equivalent to the specified issuer name and issuer serial number.

Matches(X509Certificate2)

Retorna um valor que indica se o identificador de chave desta instância corresponde ao certificado X.509 especificado.Returns a value that indicates whether the key identifier for this instance matches 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 certificate tiver o mesmo nome do emissor e número de série do emissor que a instância atual, caso contrário, false.true if certificate has the same issuer name and issuer serial number as the current instance; otherwise, false.

Comentários

O nome do emissor e o número de série do emissor são obtidos do certificate parâmetro, obtendo o valor da IssuerName propriedade e chamando o GetSerialNumber método, respectivamente.The issuer name and issuer serial number are obtained from the certificate parameter, by getting the value of the IssuerName property and calling the GetSerialNumber method, respectively.

Aplica-se a

Matches(SecurityKeyIdentifierClause)

Retorna um valor que indica se o identificador de chave dessa instância corresponde ao identificador de chave especificado.Returns a value that indicates whether the key identifier for this instance matches the specified key identifier.

public:
 override bool Matches(System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^ keyIdentifierClause);
public:
 override bool Matches(System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^ clause);
public override bool Matches (System.IdentityModel.Tokens.SecurityKeyIdentifierClause keyIdentifierClause);
public override bool Matches (System.IdentityModel.Tokens.SecurityKeyIdentifierClause clause);
override this.Matches : System.IdentityModel.Tokens.SecurityKeyIdentifierClause -> bool
override this.Matches : System.IdentityModel.Tokens.SecurityKeyIdentifierClause -> bool
Public Overrides Function Matches (keyIdentifierClause As SecurityKeyIdentifierClause) As Boolean
Public Overrides Function Matches (clause As SecurityKeyIdentifierClause) As Boolean

Parâmetros

keyIdentifierClauseclause
SecurityKeyIdentifierClause

Um SecurityKeyIdentifierClause a ser comparado com essa instância.A SecurityKeyIdentifierClause to compare to this instance.

Retornos

Boolean

true se keyIdentifierClause for um tipo X509IssuerSerialKeyIdentifierClause e se as cláusulas de identificador de chave corresponderem, caso contrário, false.true if keyIdentifierClause is a X509IssuerSerialKeyIdentifierClause type and the key identifier clauses match; otherwise, false.

Comentários

Para a X509IssuerSerialKeyIdentifierClause classe, os valores das cláusulas de identificador de chave que são comparadas para determinar se há uma correspondência são os valores IssuerName das IssuerSerialNumber Propriedades e.For the X509IssuerSerialKeyIdentifierClause class, the values of the key identifier clauses that are compared to determine if there is a match are the values of the IssuerName and IssuerSerialNumber properties.

Aplica-se a

Matches(String, String)

Retorna um valor que indica se o identificador de chave desta instância é equivalente ao nome do emissor e ao número de série do emissor especificados.Returns a value that indicates whether the key identifier for this instance is equivalent to the specified issuer name and issuer serial number.

public:
 bool Matches(System::String ^ issuerName, System::String ^ issuerSerialNumber);
public bool Matches (string issuerName, string issuerSerialNumber);
override this.Matches : string * string -> bool
Public Function Matches (issuerName As String, issuerSerialNumber As String) As Boolean

Parâmetros

issuerName
String

O nome diferenciado da autoridade de certificação que emitiu o certificado X.509.The distinguished name of the certificate authority that issued the X.509 certificate.

issuerSerialNumber
String

O número de série do certificado X.509.The serial number of the X.509 certificate.

Retornos

Boolean

true se os parâmetros issuerName e issuerSerialNumber corresponderem às propriedades IssuerName e IssuerSerialNumber, caso contrário, false.true if the issuerName and issuerSerialNumber parameters match the IssuerName and IssuerSerialNumber properties; otherwise, false.

Aplica-se a