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
- keyIdentifier
Type: System.IdentityModel.Tokens.SecurityKeyIdentifier
- token
Type: System.IdentityModel.Tokens.SecurityToken
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.