Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SecurityToken.ResolveKeyIdentifierClause Method

Gets the key for the specified key identifier clause.

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

abstract ResolveKeyIdentifierClause : 
        keyIdentifierClause:SecurityKeyIdentifierClause -> SecurityKey  
override ResolveKeyIdentifierClause : 
        keyIdentifierClause:SecurityKeyIdentifierClause -> SecurityKey

Parameters

keyIdentifierClause
Type: System.IdentityModel.Tokens.SecurityKeyIdentifierClause

A SecurityKeyIdentifierClause to get the key for.

Return Value

Type: System.IdentityModel.Tokens.SecurityKey
A SecurityKey that represents the key.

The ResolveKeyIdentifierClause method calls the MatchesKeyIdentifierClause to first determine whether the specified key identifier clause is the same as this instance.

The default implementation returns the first element of the SecurityKeys collection if the collection is not empty and if MatchesKeyIdentifierClause returns true; otherwise, it returns a null reference (Nothing in Visual Basic).

Notes to Inheritors

When you inherit from SecurityToken, and implement the ResolveKeyIdentifierClause method and keyIdentifierClause cannot be resolved, return a null reference (Nothing in Visual Basic). An exception should not be thrown from the ResolveKeyIdentifierClause method.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft