Interface GroupProvider
- All Superinterfaces:
AutoCloseable,Closeable,org.apache.kafka.common.Configurable,Provider
Interface used by providers of user to group mapping used for authorization.
-
Method Summary
Modifier and TypeMethodDescriptionSet<org.apache.kafka.common.security.auth.KafkaPrincipal> groups(org.apache.kafka.common.security.auth.KafkaPrincipal sessionPrincipal) Returns the groups of the provided user principal.booleanproviderConfigured(Map<String, ?> configs) Returns true if minimal configs of this provider are included in the provided configs.Methods inherited from interface org.apache.kafka.common.Configurable
configureMethods inherited from interface io.confluent.security.authorizer.provider.Provider
providerName, start, usesMetadataFromThisKafkaCluster
-
Method Details
-
groups
Set<org.apache.kafka.common.security.auth.KafkaPrincipal> groups(org.apache.kafka.common.security.auth.KafkaPrincipal sessionPrincipal) Returns the groups of the provided user principal.- Parameters:
sessionPrincipal- User principal of the Session.- Returns:
- Set of group principals of the user, which may be empty.
-
providerConfigured
Returns true if minimal configs of this provider are included in the provided configs.
-