Class OAuthBearerSaslServerTest
java.lang.Object
org.apache.kafka.common.security.oauthbearer.internals.OAuthBearerSaslServerTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidSASL Extensions that are validated by the callback handler should be accessible through the#getNegotiatedProperty()methodvoidsetUp()voidvoidvoidvoidvoidvoidIf the callback handler handles the `OAuthBearerExtensionsValidatorCallback` and finds an invalid extension, SaslServer should throw an authentication exceptionvoidSASL Extensions that were not recognized (neither validated nor invalidated) by the callback handler must not be accessible through the#getNegotiatedProperty()method
-
Constructor Details
-
OAuthBearerSaslServerTest
public OAuthBearerSaslServerTest()
-
-
Method Details
-
setUp
@BeforeEach public void setUp() -
noAuthorizationIdSpecified
-
negotiatedProperty
-
savesCustomExtensionAsNegotiatedProperty
-
unrecognizedExtensionsAreNotSaved
-
throwsAuthenticationExceptionOnInvalidExtensions
@Test public void throwsAuthenticationExceptionOnInvalidExtensions()If the callback handler handles the `OAuthBearerExtensionsValidatorCallback` and finds an invalid extension, SaslServer should throw an authentication exception -
authorizationIdEqualsAuthenticationId
-
authorizationIdNotEqualsAuthenticationId
@Test public void authorizationIdNotEqualsAuthenticationId() -
illegalToken
-
testExternalToken
@Test public void testExternalToken() -
testInternalToken
@Test public void testInternalToken() -
testSpireToken
@Test public void testSpireToken() -
testSniHostNameAddedToClientContext
-
testPopulateLogicalClusterIdIfMissing
@Test public void testPopulateLogicalClusterIdIfMissing()
-