Package io.confluent.kafka.multitenant
Class MultiTenantInterceptor
java.lang.Object
io.confluent.kafka.multitenant.MultiTenantInterceptor
- All Implemented Interfaces:
org.apache.kafka.common.Configurable,org.apache.kafka.server.interceptor.BrokerInterceptor
public class MultiTenantInterceptor
extends Object
implements org.apache.kafka.server.interceptor.BrokerInterceptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.apache.kafka.common.requests.RequestContextnewContext(org.apache.kafka.common.requests.RequestHeader header, String connectionId, long requestId, InetAddress clientAddress, Optional<Integer> clientPort, org.apache.kafka.common.security.auth.KafkaPrincipal principal, org.apache.kafka.common.network.ListenerName listenerName, org.apache.kafka.common.security.auth.SecurityProtocol securityProtocol, org.apache.kafka.common.network.ClientInformation clientInformation, org.apache.kafka.common.metrics.Metrics metrics, org.apache.kafka.common.security.authenticator.PathAwareSniHostName sniHostName, boolean isPrivilegedListener, Optional<org.apache.kafka.common.security.auth.KafkaPrincipalSerde> principalSerde, org.apache.kafka.common.security.auth.AuthenticationContext authenticationContext, org.apache.kafka.common.network.ProduceConsumeAuditLogTracker produceConsumeAuditLogTracker, boolean isProxyModeLocal, org.apache.kafka.common.network.BrokerFqdnBuilder.FQDNPropertiesFromPPV2 fqdnPropertiesFromPpv2, boolean shouldLogForConnection) voidonApiVersionsRequest(org.apache.kafka.common.network.ClientInformation clientInformation, String clientId, org.apache.kafka.common.security.auth.KafkaPrincipal principal, org.apache.kafka.common.metrics.Metrics metrics) voidonAuthenticatedConnection(String connectionId, InetAddress clientAddress, org.apache.kafka.common.security.auth.KafkaPrincipal principal, org.apache.kafka.common.metrics.Metrics metrics, org.apache.kafka.common.network.ChannelMetadataRegistry metadataRegistry) voidonAuthenticatedDisconnection(String connectionId, InetAddress clientAddress, org.apache.kafka.common.security.auth.KafkaPrincipal principal, org.apache.kafka.common.metrics.Metrics metrics) voidonFailedAuthentication(String connectionId, InetAddress clientAddress, org.apache.kafka.common.metrics.Metrics metrics)
-
Constructor Details
-
MultiTenantInterceptor
public MultiTenantInterceptor() -
MultiTenantInterceptor
public MultiTenantInterceptor(org.apache.kafka.common.utils.Time time)
-
-
Method Details
-
onAuthenticatedConnection
public void onAuthenticatedConnection(String connectionId, InetAddress clientAddress, org.apache.kafka.common.security.auth.KafkaPrincipal principal, org.apache.kafka.common.metrics.Metrics metrics, org.apache.kafka.common.network.ChannelMetadataRegistry metadataRegistry) - Specified by:
onAuthenticatedConnectionin interfaceorg.apache.kafka.server.interceptor.BrokerInterceptor
-
onAuthenticatedDisconnection
public void onAuthenticatedDisconnection(String connectionId, InetAddress clientAddress, org.apache.kafka.common.security.auth.KafkaPrincipal principal, org.apache.kafka.common.metrics.Metrics metrics) - Specified by:
onAuthenticatedDisconnectionin interfaceorg.apache.kafka.server.interceptor.BrokerInterceptor
-
onFailedAuthentication
public void onFailedAuthentication(String connectionId, InetAddress clientAddress, org.apache.kafka.common.metrics.Metrics metrics) - Specified by:
onFailedAuthenticationin interfaceorg.apache.kafka.server.interceptor.BrokerInterceptor
-
onApiVersionsRequest
public void onApiVersionsRequest(org.apache.kafka.common.network.ClientInformation clientInformation, String clientId, org.apache.kafka.common.security.auth.KafkaPrincipal principal, org.apache.kafka.common.metrics.Metrics metrics) - Specified by:
onApiVersionsRequestin interfaceorg.apache.kafka.server.interceptor.BrokerInterceptor
-
configure
- Specified by:
configurein interfaceorg.apache.kafka.common.Configurable
-
newContext
public org.apache.kafka.common.requests.RequestContext newContext(org.apache.kafka.common.requests.RequestHeader header, String connectionId, long requestId, InetAddress clientAddress, Optional<Integer> clientPort, org.apache.kafka.common.security.auth.KafkaPrincipal principal, org.apache.kafka.common.network.ListenerName listenerName, org.apache.kafka.common.security.auth.SecurityProtocol securityProtocol, org.apache.kafka.common.network.ClientInformation clientInformation, org.apache.kafka.common.metrics.Metrics metrics, org.apache.kafka.common.security.authenticator.PathAwareSniHostName sniHostName, boolean isPrivilegedListener, Optional<org.apache.kafka.common.security.auth.KafkaPrincipalSerde> principalSerde, org.apache.kafka.common.security.auth.AuthenticationContext authenticationContext, org.apache.kafka.common.network.ProduceConsumeAuditLogTracker produceConsumeAuditLogTracker, boolean isProxyModeLocal, org.apache.kafka.common.network.BrokerFqdnBuilder.FQDNPropertiesFromPPV2 fqdnPropertiesFromPpv2, boolean shouldLogForConnection) - Specified by:
newContextin interfaceorg.apache.kafka.server.interceptor.BrokerInterceptor
-