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
Public method NamedKeyIssuerTokenResolver() Default constructor
Public method 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
Public property IssuerTokenResolver Gets or sets the SecurityTokenResolver to call when SecurityKeyIdentifier or SecurityKeyIdentifierClause fails to resolve, before calling base.
Public property SecurityKeys Gets the named collection of SecurityKey(s).
Public property UnprocessedXmlNodes Gets the unprocessed XmlNode(s) from LoadCustomConfiguration.

Top

Methods

  Name Description
Public method LoadCustomConfiguration Populates the SecurityKeys from xml.
Protected method ReadSecurityKey When processing xml in LoadCustomConfiguration each XmlElement that has LocalName = "securityKey' is passed here for processing.
Protected method TryResolveSecurityKeyCore Finds the first SecurityKey in a named collection that match the SecurityKeyIdentifierClause.
Protected method TryResolveTokenCore(SecurityKeyIdentifier, SecurityToken) Finds a named collection of SecurityKey(s) that match the SecurityKeyIdentifier and returns a NamedKeySecurityToken that contains the SecurityKey(s).
Protected method 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.

See Also

Reference

System.IdentityModel.Tokens Namespace