MatchesKeyIdentifierClause Method

GenericXmlSecurityToken.MatchesKeyIdentifierClause Method (SecurityKeyIdentifierClause)


Returns a value that indicates whether the key identifier for this instance is equal to the specified key identifier.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public override bool MatchesKeyIdentifierClause(
	SecurityKeyIdentifierClause keyIdentifierClause


Type: System.IdentityModel.Tokens.SecurityKeyIdentifierClause

An SecurityKeyIdentifierClause to compare to this instance.

Return Value

Type: System.Boolean

true when keyIdentifierClause is not null and matches either the InternalTokenReference or ExternalTokenReference property values; otherwise, false.

The keyIdentifierClause parameter is matched against the InternalTokenReference and ExternalTokenReference property values using the Matches method on the key identifier clause that is returned by the property values.

.NET Framework
Available since 3.0
Return to top
© 2016 Microsoft