语言

CertificateAuthenticationAppBuilderExtensions.AddCertificateCache 方法

定义

添加证书身份验证。

证书身份验证使用验证客户端证书的身份验证处理程序,并引发解析证书的事件 ClaimsPrincipal。 请参阅 https://tools.ietf.org/html/rfc5246#section-7.4.4 详细了解证书身份验证。

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCertificateCache(this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Action<Microsoft.AspNetCore.Authentication.Certificate.CertificateValidationCacheOptions>? configureOptions = default);
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCertificateCache(this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Action<Microsoft.AspNetCore.Authentication.Certificate.CertificateValidationCacheOptions> configureOptions = default);
static member AddCertificateCache : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * Action<Microsoft.AspNetCore.Authentication.Certificate.CertificateValidationCacheOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddCertificateCache (builder As AuthenticationBuilder, Optional configureOptions As Action(Of CertificateValidationCacheOptions) = Nothing) As AuthenticationBuilder

参数

返回

AuthenticationBuilder。

适用于