Class RefreshingHttpsJwksTest

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

public class RefreshingHttpsJwksTest extends OAuthBearerTest
  • Constructor Details

    • RefreshingHttpsJwksTest

      public RefreshingHttpsJwksTest()
  • Method Details

    • testBasicScheduleRefresh

      @Test public void testBasicScheduleRefresh() throws Exception
      Test that a key not previously scheduled for refresh will be scheduled without a refresh.
      Throws:
      Exception
    • testMaybeExpediteRefreshNoDelay

      @Test public void testMaybeExpediteRefreshNoDelay() throws Exception
      Test that a key previously scheduled for refresh will not be scheduled a second time if it's requested right away.
      Throws:
      Exception
    • testMaybeExpediteRefreshDelays

      @Test public void testMaybeExpediteRefreshDelays() throws Exception
      Test that a key previously scheduled for refresh will be scheduled a second time if it's requested after the delay.
      Throws:
      Exception
    • testLongKey

      @Test public void testLongKey() throws Exception
      Test that a "long key" will not be looked up because the key ID is too long.
      Throws:
      Exception
    • testSecondaryRefreshAfterElapsedDelay

      @Test public void testSecondaryRefreshAfterElapsedDelay() throws Exception
      Test that if we ask to load a missing key, and then we wait past the sleep time that it will call refresh to load the key.
      Throws:
      Exception