NamedKeySecurityToken.MatchesKeyIdentifierClause Method

Answers if the SecurityKeyIdentifierClause is a match.

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

Syntax

'Declaration
Public Overrides Function MatchesKeyIdentifierClause ( _
    keyIdentifierClause As SecurityKeyIdentifierClause _
) As Boolean
public override bool MatchesKeyIdentifierClause(
    SecurityKeyIdentifierClause keyIdentifierClause
)
public:
virtual bool MatchesKeyIdentifierClause(
    SecurityKeyIdentifierClause^ keyIdentifierClause
) override
abstract MatchesKeyIdentifierClause : 
        keyIdentifierClause:SecurityKeyIdentifierClause -> bool  
override MatchesKeyIdentifierClause : 
        keyIdentifierClause:SecurityKeyIdentifierClause -> bool
public override function MatchesKeyIdentifierClause(
    keyIdentifierClause : SecurityKeyIdentifierClause
) : boolean

Parameters

Return Value

Type: System.Boolean
true if matched.

Exceptions

Exception Condition
ArgumentNullException

'keyIdentifierClause' is null.

Remarks

A successful match occurs when Name == Id.

Only NamedKeySecurityKeyIdentifierClause are matched.

.NET Framework Security

See Also

Reference

NamedKeySecurityToken Class

System.IdentityModel.Tokens Namespace