Class OAuthBearerValidatorCallbackHandlerTest

java.lang.Object
org.apache.kafka.common.security.oauthbearer.internals.secured.OAuthBearerTest
org.apache.kafka.common.security.oauthbearer.OAuthBearerValidatorCallbackHandlerTest

public class OAuthBearerValidatorCallbackHandlerTest extends OAuthBearerTest
  • Constructor Details

    • OAuthBearerValidatorCallbackHandlerTest

      public OAuthBearerValidatorCallbackHandlerTest()
  • Method Details

    • tearDown

      @AfterEach public void tearDown()
    • testBasic

      @Test public void testBasic() throws Exception
      Throws:
      Exception
    • testInvalidAccessToken

      @Test public void testInvalidAccessToken() throws Exception
      Throws:
      Exception
    • testHandlerConfigureThrowsException

      @Test public void testHandlerConfigureThrowsException() throws IOException
      Throws:
      IOException
    • testHandlerCloseDoesNotThrowException

      @Test public void testHandlerCloseDoesNotThrowException() throws IOException
      Throws:
      IOException
    • testFailsFastWhenJwksUrlAbsent

      @Test public void testFailsFastWhenJwksUrlAbsent()
    • testRejectsForgedUnsignedTokenWhenJwksUrlSet

      @Test public void testRejectsForgedUnsignedTokenWhenJwksUrlSet() throws Exception
      Throws:
      Exception
    • testFailsToStartWhenExpectedAudienceMissingWithJwksUrl

      @Test public void testFailsToStartWhenExpectedAudienceMissingWithJwksUrl()
    • testFailsToStartWhenExpectedIssuerMissingWithJwksUrl

      @Test public void testFailsToStartWhenExpectedIssuerMissingWithJwksUrl()
    • testConfigureAcceptsCustomValidatorClass

      @Test public void testConfigureAcceptsCustomValidatorClass()