oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/oidc/authentication/OidcIdTokenDecoderFactory.java
public final void setJwtValidatorFactory(Function<ClientRegistration, OAuth2TokenValidator<Jwt>> jwtValidatorFactory) {
		Assert.notNull(jwtValidatorFactory, "jwtValidatorFactory cannot be null");
		this.jwtValidatorFactory = jwtValidatorFactory;
	}
public final void setJwtValidatorFactory(Function<ClientRegistration, OAuth2TokenValidator<Jwt>> jwtValidatorFactory) {
		Assert.notNull(jwtValidatorFactory, "jwtValidatorFactory cannot be null");
		this.jwtValidatorFactory = jwtValidatorFactory;
	}
public final void setJwtValidatorFactory ( Function < ClientRegistration , OAuth2TokenValidator < Jwt > > jwtValidatorFactory ) { Assert . notNull ( jwtValidatorFactory , "jwtValidatorFactory cannot be null" ) ; this . jwtValidatorFactory = jwtValidatorFactory ; }
Sets the factory that provides an {@link OAuth2TokenValidator}, which is used by the {@link JwtDecoder}.
The default is {@link OidcIdTokenValidator}.

@param jwtValidatorFactory the factory that provides an {@link OAuth2TokenValidator}
Sets the factory that provides an { @link OAuth2TokenValidator } which is used by the { @link JwtDecoder } . The default is { @link OidcIdTokenValidator } .