ExtendedProtectionPolicy.CustomServiceNames 屬性

定義

取得用來比對用戶端服務主體名稱的自訂服務提供者名稱 (SPN) 清單。

C#
public System.Security.Authentication.ExtendedProtection.ServiceNameCollection? CustomServiceNames { get; }
C#
public System.Security.Authentication.ExtendedProtection.ServiceNameCollection CustomServiceNames { get; }

屬性值

ServiceNameCollection

ServiceNameCollection,其中包含用來比對用戶端 SPN 的自訂 SPN 清單。

備註

這個唯讀屬性表示用來比對用戶端 SPN 的自訂 SPN 清單。 根據預設,伺服器會根據其已註冊的端點來判斷預設 SPN 清單。 對於需要 SPN 檢查的案例,可以使用 建構函式來指定此屬性,以覆寫用來與用戶端 SPN 相符的預設清單。

適用於

產品 版本
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
.NET Standard 2.0, 2.1

另請參閱