Class DefaultAssertionCreatorTest

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

public class DefaultAssertionCreatorTest extends OAuthBearerTest
  • Constructor Details

    • DefaultAssertionCreatorTest

      public DefaultAssertionCreatorTest()
  • Method Details

    • testPrivateKey

      @Test public void testPrivateKey() throws Exception
      Throws:
      Exception
    • testPrivateKeyId

      @Test public void testPrivateKeyId() throws Exception
      Throws:
      Exception
    • testInvalidPrivateKey

      @Test public void testInvalidPrivateKey() throws Exception
      Throws:
      Exception
    • testAlgorithm

      @ParameterizedTest @CsvSource("RS256,ES256") public void testAlgorithm(String algorithm) throws Exception
      Throws:
      Exception
    • testInvalidAlgorithm

      @Test public void testInvalidAlgorithm() throws IOException
      Throws:
      IOException
    • testPkcs1PrivateKey

      @Test public void testPkcs1PrivateKey() throws Exception
      Throws:
      Exception
    • testEncryptedKeyWithoutPassphraseThrows

      @Test public void testEncryptedKeyWithoutPassphraseThrows() throws Exception
      Throws:
      Exception