Breyta

Deila með


SecurityToken.ResolveKeyIdentifierClause(SecurityKeyIdentifierClause) Method

Definition

Gets the key for the specified key identifier clause.

public:
 virtual System::IdentityModel::Tokens::SecurityKey ^ ResolveKeyIdentifierClause(System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^ keyIdentifierClause);
public virtual System.IdentityModel.Tokens.SecurityKey ResolveKeyIdentifierClause (System.IdentityModel.Tokens.SecurityKeyIdentifierClause keyIdentifierClause);
abstract member ResolveKeyIdentifierClause : System.IdentityModel.Tokens.SecurityKeyIdentifierClause -> System.IdentityModel.Tokens.SecurityKey
override this.ResolveKeyIdentifierClause : System.IdentityModel.Tokens.SecurityKeyIdentifierClause -> System.IdentityModel.Tokens.SecurityKey
Public Overridable Function ResolveKeyIdentifierClause (keyIdentifierClause As SecurityKeyIdentifierClause) As SecurityKey

Parameters

keyIdentifierClause
SecurityKeyIdentifierClause

A SecurityKeyIdentifierClause to get the key for.

Returns

A SecurityKey that represents the key.

Remarks

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(SecurityKeyIdentifierClause) method and keyIdentifierClause cannot be resolved, return null. An exception should not be thrown from the ResolveKeyIdentifierClause(SecurityKeyIdentifierClause) method.

Applies to

See also