Class OAuthBearerSaslServerTest

java.lang.Object
org.apache.kafka.common.security.oauthbearer.internals.OAuthBearerSaslServerTest

public class OAuthBearerSaslServerTest extends Object
  • Constructor Details

    • OAuthBearerSaslServerTest

      public OAuthBearerSaslServerTest()
  • Method Details

    • setUp

      @BeforeEach public void setUp()
    • noAuthorizationIdSpecified

      @Test public void noAuthorizationIdSpecified() throws Exception
      Throws:
      Exception
    • negotiatedProperty

      @Test public void negotiatedProperty() throws Exception
      Throws:
      Exception
    • savesCustomExtensionAsNegotiatedProperty

      @Test public void savesCustomExtensionAsNegotiatedProperty() throws Exception
      SASL Extensions that are validated by the callback handler should be accessible through the #getNegotiatedProperty() method
      Throws:
      Exception
    • unrecognizedExtensionsAreNotSaved

      @Test public void unrecognizedExtensionsAreNotSaved() throws Exception
      SASL Extensions that were not recognized (neither validated nor invalidated) by the callback handler must not be accessible through the #getNegotiatedProperty() method
      Throws:
      Exception
    • throwsAuthenticationExceptionOnInvalidExtensions

      @Test public void throwsAuthenticationExceptionOnInvalidExtensions()
      If the callback handler handles the `OAuthBearerExtensionsValidatorCallback` and finds an invalid extension, SaslServer should throw an authentication exception
    • authorizationIdEqualsAuthenticationId

      @Test public void authorizationIdEqualsAuthenticationId() throws Exception
      Throws:
      Exception
    • authorizationIdNotEqualsAuthenticationId

      @Test public void authorizationIdNotEqualsAuthenticationId()
    • illegalToken

      @Test public void illegalToken() throws Exception
      Throws:
      Exception
    • testExternalToken

      @Test public void testExternalToken()
    • testInternalToken

      @Test public void testInternalToken()
    • testSpireToken

      @Test public void testSpireToken()
    • testSniHostNameAddedToClientContext

      @Test public void testSniHostNameAddedToClientContext() throws Exception
      Throws:
      Exception
    • testPopulateLogicalClusterIdIfMissing

      @Test public void testPopulateLogicalClusterIdIfMissing()