X509SecurityToken.MatchesKeyIdentifierClause Metoda

Definicja

Zwraca wartość wskazującą, czy identyfikator klucza dla tego wystąpienia jest równy podanej wartości identyfikatora klucza.

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

Parametry

keyIdentifierClauseskiClause
SecurityKeyIdentifierClause

Element SecurityKeyIdentifierClause do porównania z tym wystąpieniem.

Zwraca

Boolean

true jeśli element jest jedną z typów , , lub , a klauzule identyfikatora keyIdentifierClause X509SubjectKeyIdentifierClause klucza są X509ThumbprintKeyIdentifierClause X509IssuerSerialKeyIdentifierClause X509RawDataKeyIdentifierClause zgodne; w przeciwnym razie false .

Uwagi

Metoda MatchesKeyIdentifierClause odpowiada kryteriom w certyfikacie X.509 we właściwości na Certificate podstawie typu keyIdentifierClause parametru. W poniższej tabeli przedstawiono elementy dopasowane.

Typ klauzuli identyfikatora klucza Co jest dopasowane
X509IssuerSerialKeyIdentifierClause Wartość właściwości i numer seryjny wystawcy IssuerName zwrócony z GetSerialNumber metody .
X509RawDataKeyIdentifierClause Dane zwrócone z GetRawCertData metody .
X509SubjectKeyIdentifierClause Rozszerzenie identyfikatora klucza podmiotu we Extensions właściwości jest zgodne.
X509ThumbprintKeyIdentifierClause Odcisk palca zwracany przez GetCertHash metodę .

Dotyczy