Class ClientAssertionRequestFormatterTest

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

public class ClientAssertionRequestFormatterTest extends OAuthBearerTest
  • Constructor Details

    • ClientAssertionRequestFormatterTest

      public ClientAssertionRequestFormatterTest()
  • Method Details

    • testFormatHeaders

      @Test public void testFormatHeaders()
    • testFormatHeadersDoNotContainAuthorization

      @Test public void testFormatHeadersDoNotContainAuthorization()
    • testFormatBodyContainsAssertionType

      @Test public void testFormatBodyContainsAssertionType()
    • testFormatBodyContainsGrantType

      @Test public void testFormatBodyContainsGrantType()
    • testFormatBodyWithClientIdAndScope

      @Test public void testFormatBodyWithClientIdAndScope()
    • testFormatBodyOmitsClientIdWhenNullOrEmpty

      @ParameterizedTest @NullAndEmptySource public void testFormatBodyOmitsClientIdWhenNullOrEmpty(String clientId)
    • testFormatBodyOmitsScopeWhenBlankOrNull

      @ParameterizedTest @NullAndEmptySource @ValueSource(strings={" ","\t"}) public void testFormatBodyOmitsScopeWhenBlankOrNull(String scope)
    • testFormatBodyMinimal

      @Test public void testFormatBodyMinimal()
    • testScopeUrlEncoding

      @ParameterizedTest @MethodSource("scopeUrlEncodingSource") public void testScopeUrlEncoding(String scope, String expectedScope)
    • testAssertionValueComesFromSupplier

      @Test public void testAssertionValueComesFromSupplier()
    • testFormatBodyParameterOrder

      @Test public void testFormatBodyParameterOrder()
    • testCloseDelegatesToSupplier

      @Test public void testCloseDelegatesToSupplier() throws IOException
      Throws:
      IOException
    • testGrantTypeConstant

      @Test public void testGrantTypeConstant()
    • testFormatBodyPropagatesSupplierException

      @Test public void testFormatBodyPropagatesSupplierException()