Skip to content

Commit 453002b

Browse files
committed
Add class of SslBundleSslEngineFactory to Kafka config map
Closes gh-44414
1 parent 59c0036 commit 453002b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/kafka/KafkaProperties.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -1455,7 +1455,7 @@ public Map<String, Object> buildProperties(SslBundles sslBundles) {
14551455

14561456
private Map<String, Object> buildPropertiesForSslBundle(SslBundles sslBundles, String name) {
14571457
Properties properties = new Properties();
1458-
properties.in(SslConfigs.SSL_ENGINE_FACTORY_CLASS_CONFIG).accept(SslBundleSslEngineFactory.class.getName());
1458+
properties.in(SslConfigs.SSL_ENGINE_FACTORY_CLASS_CONFIG).accept(SslBundleSslEngineFactory.class);
14591459
properties.in(SslBundle.class.getName()).accept(sslBundles.getBundle(name));
14601460
return properties;
14611461
}

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/kafka/KafkaPropertiesTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -108,7 +108,7 @@ void sslBundleConfiguration() {
108108
Map<String, Object> consumerProperties = properties
109109
.buildConsumerProperties(new DefaultSslBundleRegistry("myBundle", this.sslBundle));
110110
assertThat(consumerProperties).containsEntry(SslConfigs.SSL_ENGINE_FACTORY_CLASS_CONFIG,
111-
SslBundleSslEngineFactory.class.getName());
111+
SslBundleSslEngineFactory.class);
112112
}
113113

114114
@Test

0 commit comments

Comments
 (0)