NamedKeyIssuerTokenResolver.TryResolveTokenCore Method (SecurityKeyIdentifier, SecurityToken)

Finds a named collection of SecurityKey(s) that match the SecurityKeyIdentifier and returns a NamedKeySecurityToken that contains the SecurityKey(s).

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

Syntax

'Declaration
Protected Overridable Function TryResolveTokenCore ( _
    keyIdentifier As SecurityKeyIdentifier, _
    <OutAttribute> ByRef token As SecurityToken _
) As Boolean
protected virtual bool TryResolveTokenCore(
    SecurityKeyIdentifier keyIdentifier,
    out SecurityToken token
)
protected:
virtual bool TryResolveTokenCore(
    SecurityKeyIdentifier^ keyIdentifier, 
    [OutAttribute] SecurityToken^% token
)
abstract TryResolveTokenCore : 
        keyIdentifier:SecurityKeyIdentifier * 
        token:SecurityToken byref -> bool  
override TryResolveTokenCore : 
        keyIdentifier:SecurityKeyIdentifier * 
        token:SecurityToken byref -> bool
protected function TryResolveTokenCore(
    keyIdentifier : SecurityKeyIdentifier, 
    token : SecurityToken
) : boolean

Parameters

Return Value

Type: System.Boolean
Returns Boolean.

Remarks

A SecurityKeyIdentifier can contain multiple SecurityKeyIdentifierClause(s). This method will return the named collection that matches the first SecurityKeyIdentifierClause

If there is no match, then IssuerTokenResolver and 'base' are called in order.

.NET Framework Security

See Also

Reference

NamedKeyIssuerTokenResolver Class

TryResolveTokenCore Overload

System.IdentityModel.Tokens Namespace