Sprache

CertificateAuthenticationAppBuilderExtensions.AddCertificateCache Methode

Definition

Fügt die Zertifikatauthentifizierung hinzu.

Die Zertifikatauthentifizierung verwendet einen Authentifizierungshandler, der das Clientzertifikat überprüft und ein Ereignis auslöst, bei dem das Zertifikat in ein ClaimsPrincipal. Weitere Informationen zur Zertifikatauthentifizierung finden Sie https://tools.ietf.org/html/rfc5246#section-7.4.4 unter .

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

Parameter

configureOptions
Action<CertificateValidationCacheOptions>

Eine Stellvertretung, die konfiguriert werden CertificateValidationCacheOptionssoll.

Gibt zurück

Die AuthenticationBuilder.

Gilt für: