ResolveKeyIdentifierClause Method
Collapse the table of content
Expand the table of content

SecurityToken.ResolveKeyIdentifierClause Method (SecurityKeyIdentifierClause)


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


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 null.

Notes to Inheritors:

When you inherit from SecurityToken, and implement the ResolveKeyIdentifierClause method and keyIdentifierClause cannot be resolved, return null. An exception should not be thrown from the ResolveKeyIdentifierClause method.

.NET Framework
Available since 3.0
Return to top
© 2016 Microsoft