Skip to main content

authorize_topics

Function authorize_topics 

Source
pub fn authorize_topics<'a>(
    authorizer: &dyn Authorizer,
    source: &dyn AclSource,
    principal: &Principal,
    host: &SocketAddr,
    operation: AclOperation,
    topic_names: impl IntoIterator<Item = &'a str>,
) -> HashMap<&'a str, AuthorizationResult>
Expand description

Batch-authorize a set of topic names against the same principal, host, and operation.

The Produce, Fetch, and Metadata per-topic enforcement paths call this function. The returned map borrows its keys from the input iterator, so callers can avoid a copy of the topic strings.