NamedKeyIssuerTokenResolver Class
NamedKeyIssuerTokenResolver represents a collection of named sets of SecurityKey(s) that can be matched by a NamedKeySecurityKeyIdentifierClause and return a NamedKeySecurityToken that contains SecurityKey(s).
Inheritance Hierarchy
System.IdentityModel.Tokens.IssuerTokenResolver
System.IdentityModel.Tokens.NamedKeyIssuerTokenResolver
Namespace: System.IdentityModel.Tokens
Assembly: System.IdentityModel.Tokens.Jwt (in System.IdentityModel.Tokens.Jwt.dll)
Syntax
'Declaration
Public Class NamedKeyIssuerTokenResolver _
Inherits IssuerTokenResolver
public class NamedKeyIssuerTokenResolver : IssuerTokenResolver
public ref class NamedKeyIssuerTokenResolver : public IssuerTokenResolver
type NamedKeyIssuerTokenResolver =
class
inherit IssuerTokenResolver
end
public class NamedKeyIssuerTokenResolver extends IssuerTokenResolver
The NamedKeyIssuerTokenResolver type exposes the following members.
Constructors
Name | Description | |
---|---|---|
NamedKeyIssuerTokenResolver() | Default constructor | |
NamedKeyIssuerTokenResolver(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. |
Top
Properties
Name | Description | |
---|---|---|
IssuerTokenResolver | Gets or sets the SecurityTokenResolver to call when SecurityKeyIdentifier or SecurityKeyIdentifierClause fails to resolve, before calling base. | |
SecurityKeys | Gets the named collection of SecurityKey(s). | |
UnprocessedXmlNodes | Gets the unprocessed XmlNode(s) from LoadCustomConfiguration. |
Top
Methods
Name | Description | |
---|---|---|
LoadCustomConfiguration | Populates the SecurityKeys from xml. | |
ReadSecurityKey | When processing xml in LoadCustomConfiguration each XmlElement that has LocalName = "securityKey' is passed here for processing. | |
TryResolveSecurityKeyCore | Finds the first SecurityKey in a named collection that match the SecurityKeyIdentifierClause. | |
TryResolveTokenCore(SecurityKeyIdentifier, SecurityToken) | Finds a named collection of SecurityKey(s) that match the SecurityKeyIdentifier and returns a NamedKeySecurityToken that contains the SecurityKey(s). | |
TryResolveTokenCore(SecurityKeyIdentifierClause, SecurityToken) | Finds a named collection of SecurityKey(s) that match the SecurityKeyIdentifierClause and returns a NamedKeySecurityToken that contains the SecurityKey(s). |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.