NamedKeySecurityToken Constructor

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

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

Syntax

'Declaration
Public Sub New ( _
    name As String, _
    keys As IEnumerable(Of SecurityKey) _
)
public NamedKeySecurityToken(
    string name,
    IEnumerable<SecurityKey> keys
)
public:
NamedKeySecurityToken(
    String^ name, 
    IEnumerable<SecurityKey^>^ keys
)
new : 
        name:string * 
        keys:IEnumerable<SecurityKey> -> NamedKeySecurityToken
public function NamedKeySecurityToken(
    name : String, 
    keys : IEnumerable<SecurityKey>
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

'name' is null.

-or-

'keys' is null.

ArgumentException

string.IsNullOrWhiteSpace( 'name' ) is true.

.NET Framework Security

See Also

Reference

NamedKeySecurityToken Class

System.IdentityModel.Tokens Namespace