Class DefaultJwtRetrieverTest

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

public class DefaultJwtRetrieverTest extends OAuthBearerTest
  • Constructor Details

    • DefaultJwtRetrieverTest

      public DefaultJwtRetrieverTest()
  • Method Details

    • tearDown

      @AfterEach public void tearDown() throws Exception
      Throws:
      Exception
    • testConfigureRefreshingFileJwtRetriever

      @Test public void testConfigureRefreshingFileJwtRetriever() throws Exception
      Throws:
      Exception
    • testConfigureRefreshingFileJwtRetrieverWithInvalidDirectory

      @Test public void testConfigureRefreshingFileJwtRetrieverWithInvalidDirectory() throws IOException
      Throws:
      IOException
    • testSaslOauthbearerTokenEndpointUrlIsNotAllowed

      @Test public void testSaslOauthbearerTokenEndpointUrlIsNotAllowed() throws Exception
      Throws:
      Exception
    • testConfigureWithAccessTokenFile

      @Test public void testConfigureWithAccessTokenFile() throws Exception
      Throws:
      Exception
    • testConfigureWithAccessClientCredentials

      @Test public void testConfigureWithAccessClientCredentials() throws Exception
      Throws:
      Exception
    • testUrlEncodeHeader

      @ParameterizedTest @MethodSource("urlEncodeHeaderSupplier") public void testUrlEncodeHeader(Map<String,Object> configs, boolean expectedValue)