LocalIdKeyIdentifierClause.Matches Method

Definition

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

Overloads

Matches(SecurityKeyIdentifierClause)

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

Matches(String, Type)

Returns a value that indicates whether the key identifier for this instance is equivalent to the specified reference and type.

Matches(SecurityKeyIdentifierClause)

Source:
LocalIdKeyIdentifierClause.cs

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

public override bool Matches (System.IdentityModel.Tokens.SecurityKeyIdentifierClause keyIdentifierClause);

Parameters

keyIdentifierClause
SecurityKeyIdentifierClause

A SecurityKeyIdentifierClause to compare to.

Returns

true if keyIdentifierClause is of type LocalIdKeyIdentifierClause and the values of the LocalId and OwnerType properties match the current instance; otherwise, false. See the remarks for more details.

Remarks

A match on the OwnerType property occurs when one of the following happens:

  • The value of the OwnerType property for the instance represented by the keyIdentifierClause parameter is null.

  • The value of the OwnerType property for the current instance is null.

  • The OwnerType property for the two instances are identical.

Applies to

.NET Framework 4.8.1 ja muud versioonid
Toode Versioonid
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Matches(String, Type)

Source:
LocalIdKeyIdentifierClause.cs

Returns a value that indicates whether the key identifier for this instance is equivalent to the specified reference and type.

public bool Matches (string localId, Type ownerType);

Parameters

localId
String

The value of the wsu:Id attribute for an XML element within the current SOAP message.

ownerType
Type

A Type that is the type of security token that is referred to by the localId parameter.

Returns

true if the localId and ownerType parameters match the values of the LocalId and OwnerType properties; otherwise, false.

Remarks

A match on the OwnerType property occurs when one of the following happens:

  • The value of the OwnerType property for the current instance is null.

  • The value of the ownerType parameter is null.

  • The value of the OwnerType property is identical to the ownerType parameter for the current method.

Applies to

.NET Framework 4.8.1 ja muud versioonid
Toode Versioonid
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1