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
keyIdentifierClause
Type: System.IdentityModel.Tokens.SecurityKeyIdentifierClause
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.