NamedKeySecurityToken Class
A SecurityToken that contains multiple SecurityKey that have a name.
Inheritance Hierarchy
System.Object
System.IdentityModel.Tokens.SecurityToken
System.IdentityModel.Tokens.NamedKeySecurityToken
Namespace: System.IdentityModel.Tokens
Assembly: System.IdentityModel.Tokens.Jwt (in System.IdentityModel.Tokens.Jwt.dll)
Syntax
'Declaration
Public Class NamedKeySecurityToken _
Inherits SecurityToken
public class NamedKeySecurityToken : SecurityToken
public ref class NamedKeySecurityToken : public SecurityToken
type NamedKeySecurityToken =
class
inherit SecurityToken
end
public class NamedKeySecurityToken extends SecurityToken
The NamedKeySecurityToken type exposes the following members.
Constructors
Name | Description | |
---|---|---|
NamedKeySecurityToken | A SecurityToken that contains a IEnumerable<T>(System.IdentityModel.Tokens.SecurityKey) that can be matched by name. |
Top
Properties
Name | Description | |
---|---|---|
Id | Gets the id (Overrides SecurityToken.Id.) | |
SecurityKeys | Gets the SecurityKey(s). (Overrides SecurityToken.SecurityKeys.) | |
ValidFrom | Gets the creation time as a DateTime. (Overrides SecurityToken.ValidFrom.) | |
ValidTo | Gets the expiration time as a DateTime (Overrides SecurityToken.ValidTo.) |
Top
Methods
Name | Description | |
---|---|---|
CanCreateKeyIdentifierClause<T> | Gets a value that indicates whether this security token is capable of creating the specified key identifier. (Inherited from SecurityToken.) | |
CreateKeyIdentifierClause<T> | Creates the specified key identifier clause. (Inherited from SecurityToken.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MatchesKeyIdentifierClause | Answers if the SecurityKeyIdentifierClause is a match. (Overrides SecurityToken.MatchesKeyIdentifierClause(SecurityKeyIdentifierClause).) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ResolveKeyIdentifierClause | Gets the firstSecurityKey that matches a SecurityKeyIdentifierClause (Overrides SecurityToken.ResolveKeyIdentifierClause(SecurityKeyIdentifierClause).) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
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.