SecurityToken::ResolveKeyIdentifierClause Method (SecurityKeyIdentifierClause^)
Gets the key for the specified key identifier clause.
Assembly: System.IdentityModel (in System.IdentityModel.dll)
public: virtual SecurityKey^ ResolveKeyIdentifierClause( SecurityKeyIdentifierClause^ keyIdentifierClause )
Parameters
- keyIdentifierClause
-
Type:
System.IdentityModel.Tokens::SecurityKeyIdentifierClause^
A SecurityKeyIdentifierClause to get the key for.
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.
Available since 3.0