Interface GroupProvider

All Superinterfaces:
AutoCloseable, Closeable, org.apache.kafka.common.Configurable, Provider

public interface GroupProvider extends Provider
Interface used by providers of user to group mapping used for authorization.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    boolean
    Returns true if minimal configs of this provider are included in the provided configs.

    Methods inherited from interface java.io.Closeable

    close

    Methods inherited from interface org.apache.kafka.common.Configurable

    configure

    Methods 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

      boolean providerConfigured(Map<String,?> configs)
      Returns true if minimal configs of this provider are included in the provided configs.