Commit 55efd62
fix: replace deprecated X509Certificate.getSubjectDN() and getIssuerDN()
Replace deprecated methods with their X500Principal equivalents:
- getSubjectDN() → getSubjectX500Principal()
- getIssuerDN() → getIssuerX500Principal()
Both deprecated methods have implementation-dependent behavior, while
X500Principal provides well-defined RFC 2253 output via getName().
Fixes #3282
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 9c3a07f commit 55efd62
File tree
1 file changed
+5
-5
lines changed- clients/src/main/java/org/apache/kafka/common/security/ssl
1 file changed
+5
-5
lines changedLines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | | - | |
325 | | - | |
| 324 | + | |
| 325 | + | |
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| |||
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
374 | | - | |
375 | | - | |
| 374 | + | |
| 375 | + | |
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| |||
0 commit comments