Saml2AssertionKeyIdentifierClause.Matches Method (String, SecurityKeyIdentifierClause)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns a value that indicates whether the key identifier for an assertion is equivalent to the specified key identifier clause.

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

public static bool Matches(
	string assertionId,
	SecurityKeyIdentifierClause keyIdentifierClause
)

Parameters

assertionId
Type: System.String

The ID of the assertion.

keyIdentifierClause
Type: System.IdentityModel.Tokens.SecurityKeyIdentifierClause

A SecurityKeyIdentifierClause to compare to.

Return Value

Type: System.Boolean

true if assertionId matches the Id property of keyIdentifierClause; otherwise, false.

Exception Condition
ArgumentNullException

assertionId is null or an empty string.

.NET Framework
Available since 4.5
Return to top
Show: