Sdílet prostřednictvím


CertificateAuthenticationAppBuilderExtensions.AddCertificateCache Metoda

Definice

Přidá ověřování pomocí certifikátu.

Ověřování certifikátu používá obslužnou rutinu ověřování, která ověřuje klientský certifikát a vyvolává událost, kdy se certifikát přeloží na ClaimsPrincipal. Přečtěte https://tools.ietf.org/html/rfc5246#section-7.4.4 si další informace o ověřování certicate.

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

Parametry

configureOptions
Action<CertificateValidationCacheOptions>

Delegát pro konfiguraci CertificateValidationCacheOptions.

Návraty

Hodnota AuthenticationBuilder

Platí pro