共用方式為


JwtBearerHandler 建構函式

定義

多載

JwtBearerHandler(IOptionsMonitor<JwtBearerOptions>, ILoggerFactory, UrlEncoder)

初始化 JwtBearerHandler 的新執行個體。

JwtBearerHandler(IOptionsMonitor<JwtBearerOptions>, ILoggerFactory, UrlEncoder, ISystemClock)
已淘汰.

初始化 JwtBearerHandler 的新執行個體。

JwtBearerHandler(IOptionsMonitor<JwtBearerOptions>, ILoggerFactory, UrlEncoder, IDataProtectionProvider, ISystemClock)

JwtBearerHandler(IOptionsMonitor<JwtBearerOptions>, ILoggerFactory, UrlEncoder)

來源:
JwtBearerHandler.cs

初始化 JwtBearerHandler 的新執行個體。

public JwtBearerHandler (Microsoft.Extensions.Options.IOptionsMonitor<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> options, Microsoft.Extensions.Logging.ILoggerFactory logger, System.Text.Encodings.Web.UrlEncoder encoder);
new Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler : Microsoft.Extensions.Options.IOptionsMonitor<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> * Microsoft.Extensions.Logging.ILoggerFactory * System.Text.Encodings.Web.UrlEncoder -> Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler
Public Sub New (options As IOptionsMonitor(Of JwtBearerOptions), logger As ILoggerFactory, encoder As UrlEncoder)

參數

options
IOptionsMonitor<JwtBearerOptions>

選項實例的監視器。

encoder
UrlEncoder

UrlEncoder

適用於

JwtBearerHandler(IOptionsMonitor<JwtBearerOptions>, ILoggerFactory, UrlEncoder, ISystemClock)

來源:
JwtBearerHandler.cs
來源:
JwtBearerHandler.cs
來源:
JwtBearerHandler.cs
來源:
JwtBearerHandler.cs
來源:
JwtBearerHandler.cs
來源:
JwtBearerHandler.cs

警告

ISystemClock is obsolete, use TimeProvider on AuthenticationSchemeOptions instead.

初始化 JwtBearerHandler 的新執行個體。

public:
 JwtBearerHandler(Microsoft::Extensions::Options::IOptionsMonitor<Microsoft::AspNetCore::Authentication::JwtBearer::JwtBearerOptions ^> ^ options, Microsoft::Extensions::Logging::ILoggerFactory ^ logger, System::Text::Encodings::Web::UrlEncoder ^ encoder, Microsoft::AspNetCore::Authentication::ISystemClock ^ clock);
public JwtBearerHandler (Microsoft.Extensions.Options.IOptionsMonitor<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> options, Microsoft.Extensions.Logging.ILoggerFactory logger, System.Text.Encodings.Web.UrlEncoder encoder, Microsoft.AspNetCore.Authentication.ISystemClock clock);
[System.Obsolete("ISystemClock is obsolete, use TimeProvider on AuthenticationSchemeOptions instead.")]
public JwtBearerHandler (Microsoft.Extensions.Options.IOptionsMonitor<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> options, Microsoft.Extensions.Logging.ILoggerFactory logger, System.Text.Encodings.Web.UrlEncoder encoder, Microsoft.AspNetCore.Authentication.ISystemClock clock);
new Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler : Microsoft.Extensions.Options.IOptionsMonitor<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> * Microsoft.Extensions.Logging.ILoggerFactory * System.Text.Encodings.Web.UrlEncoder * Microsoft.AspNetCore.Authentication.ISystemClock -> Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler
[<System.Obsolete("ISystemClock is obsolete, use TimeProvider on AuthenticationSchemeOptions instead.")>]
new Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler : Microsoft.Extensions.Options.IOptionsMonitor<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> * Microsoft.Extensions.Logging.ILoggerFactory * System.Text.Encodings.Web.UrlEncoder * Microsoft.AspNetCore.Authentication.ISystemClock -> Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler
Public Sub New (options As IOptionsMonitor(Of JwtBearerOptions), logger As ILoggerFactory, encoder As UrlEncoder, clock As ISystemClock)

參數

options
IOptionsMonitor<JwtBearerOptions>

選項實例的監視器。

encoder
UrlEncoder

UrlEncoder

屬性

適用於

JwtBearerHandler(IOptionsMonitor<JwtBearerOptions>, ILoggerFactory, UrlEncoder, IDataProtectionProvider, ISystemClock)

來源:
JwtBearerHandler.cs
來源:
JwtBearerHandler.cs
public:
 JwtBearerHandler(Microsoft::Extensions::Options::IOptionsMonitor<Microsoft::AspNetCore::Authentication::JwtBearer::JwtBearerOptions ^> ^ options, Microsoft::Extensions::Logging::ILoggerFactory ^ logger, System::Text::Encodings::Web::UrlEncoder ^ encoder, Microsoft::AspNetCore::DataProtection::IDataProtectionProvider ^ dataProtection, Microsoft::AspNetCore::Authentication::ISystemClock ^ clock);
public JwtBearerHandler (Microsoft.Extensions.Options.IOptionsMonitor<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> options, Microsoft.Extensions.Logging.ILoggerFactory logger, System.Text.Encodings.Web.UrlEncoder encoder, Microsoft.AspNetCore.DataProtection.IDataProtectionProvider dataProtection, Microsoft.AspNetCore.Authentication.ISystemClock clock);
new Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler : Microsoft.Extensions.Options.IOptionsMonitor<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> * Microsoft.Extensions.Logging.ILoggerFactory * System.Text.Encodings.Web.UrlEncoder * Microsoft.AspNetCore.DataProtection.IDataProtectionProvider * Microsoft.AspNetCore.Authentication.ISystemClock -> Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler
Public Sub New (options As IOptionsMonitor(Of JwtBearerOptions), logger As ILoggerFactory, encoder As UrlEncoder, dataProtection As IDataProtectionProvider, clock As ISystemClock)

參數

encoder
UrlEncoder
dataProtection
IDataProtectionProvider
clock
ISystemClock

適用於