CertificateAuthenticationAppBuilderExtensions.AddCertificateCache Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
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
- builder
- AuthenticationBuilder
- configureOptions
- Action<CertificateValidationCacheOptions>
Eine Stellvertretung, die konfiguriert werden CertificateValidationCacheOptionssoll.