Class OAuthBearerValidatorCallbackHandlerTest
java.lang.Object
org.apache.kafka.common.security.oauthbearer.internals.secured.OAuthBearerTest
org.apache.kafka.common.security.oauthbearer.OAuthBearerValidatorCallbackHandlerTest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classStand-in for a custom operator-suppliedJwtValidator, used to verify that the startup configuration check does not apply when a non-default validator class is set. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
OAuthBearerValidatorCallbackHandlerTest
public OAuthBearerValidatorCallbackHandlerTest()
-
-
Method Details
-
tearDown
@AfterEach public void tearDown() -
testBasic
-
testInvalidAccessToken
-
testHandlerConfigureThrowsException
- Throws:
IOException
-
testHandlerCloseDoesNotThrowException
- Throws:
IOException
-
testFailsFastWhenJwksUrlAbsent
@Test public void testFailsFastWhenJwksUrlAbsent() -
testRejectsForgedUnsignedTokenWhenJwksUrlSet
-
testFailsToStartWhenExpectedAudienceMissingWithJwksUrl
@Test public void testFailsToStartWhenExpectedAudienceMissingWithJwksUrl() -
testFailsToStartWhenExpectedIssuerMissingWithJwksUrl
@Test public void testFailsToStartWhenExpectedIssuerMissingWithJwksUrl() -
testConfigureAcceptsCustomValidatorClass
@Test public void testConfigureAcceptsCustomValidatorClass()
-