Class SanUriExtractorTest
java.lang.Object
org.apache.kafka.common.security.ssl.SanUriExtractorTest
Uses real, BouncyCastle-signed X.509 certificates (via
TestSslUtils) rather than mocks,
so these tests exercise the actual ASN.1 SAN extension encoding/decoding that
X509Certificate.getSubjectAlternativeNames() performs, not just a canned mock return
value.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
SanUriExtractorTest
public SanUriExtractorTest()
-
-
Method Details
-
testSingleUriEntryReturnedAsIs
-
testMultipleUriEntriesReturnedInSameOrder
-
testMixedSanTypesOnlyUriEntriesSurvive
-
testNoSanExtensionReturnsEmptyListNotNull
-
testSanExtensionPresentWithNoUriEntriesReturnsEmptyList
-
testRelativeUriDroppedButOtherValidEntriesSurvive
-
testEmptyStringUriEntryDroppedButOtherValidEntriesSurvive
-
testCertificateParsingExceptionFailsClosedToEmptyList
-