Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SecurityToken::ResolveKeyIdentifierClause Method (SecurityKeyIdentifierClause^)

 

Gets the key for the specified key identifier clause.

Namespace:   System.IdentityModel.Tokens
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.

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
Show:
© 2017 Microsoft