NamedKeyIssuerTokenResolver Constructor (IDictionary<String, IList<SecurityKey>>, IssuerTokenResolver)
Populates this instance with a named collection of SecurityKey(s) and an optional SecurityTokenResolver that will be called when a SecurityKeyIdentifier or SecurityKeyIdentifierClause cannot be resolved.
Namespace: System.IdentityModel.Tokens
Assembly: System.IdentityModel.Tokens.Jwt (in System.IdentityModel.Tokens.Jwt.dll)
Syntax
'Declaration
Public Sub New ( _
keys As IDictionary(Of String, IList(Of SecurityKey)), _
innerTokenResolver As IssuerTokenResolver _
)
public NamedKeyIssuerTokenResolver(
IDictionary<string, IList<SecurityKey>> keys,
IssuerTokenResolver innerTokenResolver
)
public:
NamedKeyIssuerTokenResolver(
IDictionary<String^, IList<SecurityKey^>^>^ keys,
IssuerTokenResolver^ innerTokenResolver
)
new :
keys:IDictionary<string, IList<SecurityKey>> *
innerTokenResolver:IssuerTokenResolver -> NamedKeyIssuerTokenResolver
public function NamedKeyIssuerTokenResolver(
keys : IDictionary<String, IList<SecurityKey>>,
innerTokenResolver : IssuerTokenResolver
)
Parameters
keys
Type: System.Collections.Generic.IDictionary<String, IList<SecurityKey>>A named collection of SecurityKey(s).
innerTokenResolver
Type: System.IdentityModel.Tokens.IssuerTokenResolverA IssuerTokenResolver to call when resolving fails, before calling base.
Remarks
if 'keys' is null an empty collection will be created. A named collection of SecurityKey(s) can be added by accessing the property SecurityKeys.
.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.
See Also
Reference
NamedKeyIssuerTokenResolver Class