NamedKeySecurityToken Class

A SecurityToken that contains multiple SecurityKey that have a name.

Inheritance Hierarchy


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


Public Class NamedKeySecurityToken _
    Inherits SecurityToken
public class NamedKeySecurityToken : SecurityToken
public ref class NamedKeySecurityToken : public SecurityToken
type NamedKeySecurityToken =  
        inherit SecurityToken 
public class NamedKeySecurityToken extends SecurityToken

The NamedKeySecurityToken type exposes the following members.


  Name Description
Public method NamedKeySecurityToken A SecurityToken that contains a IEnumerable<T>(System.IdentityModel.Tokens.SecurityKey) that can be matched by name.



  Name Description
Public property Id Gets the id (Overrides SecurityToken.Id.)
Public property SecurityKeys Gets the SecurityKey(s). (Overrides SecurityToken.SecurityKeys.)
Public property ValidFrom Gets the creation time as a DateTime. (Overrides SecurityToken.ValidFrom.)
Public property ValidTo Gets the expiration time as a DateTime (Overrides SecurityToken.ValidTo.)



  Name Description
Public method CanCreateKeyIdentifierClause<T> Gets a value that indicates whether this security token is capable of creating the specified key identifier. (Inherited from SecurityToken.)
Public method CreateKeyIdentifierClause<T> Creates the specified key identifier clause. (Inherited from SecurityToken.)
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method MatchesKeyIdentifierClause Answers if the SecurityKeyIdentifierClause is a match. (Overrides SecurityToken.MatchesKeyIdentifierClause(SecurityKeyIdentifierClause).)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ResolveKeyIdentifierClause Gets the firstSecurityKey that matches a SecurityKeyIdentifierClause (Overrides SecurityToken.ResolveKeyIdentifierClause(SecurityKeyIdentifierClause).)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)


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


System.IdentityModel.Tokens Namespace