public interface AuditLogProvider extends Provider, org.apache.kafka.common.Reconfigurable
Modifier and Type | Method and Description |
---|---|
void |
logAuthorization(RequestContext requestContext,
Action action,
AuthorizeResult authorizeResult,
AuthorizePolicy authorizePolicy)
Generates an audit log entry with the provided data.
|
boolean |
providerConfigured(java.util.Map<java.lang.String,?> configs)
Returns true if minimal configs of this provider are included in the provided configs.
|
providerName, start, usesMetadataFromThisKafkaCluster
void logAuthorization(RequestContext requestContext, Action action, AuthorizeResult authorizeResult, AuthorizePolicy authorizePolicy)
requestContext
- Request context that contains details of the request that was being
authorized. This includes the user principal.action
- The action that was being authorized including resource and operation.authorizeResult
- Result of the authorization indicating if access was granted.authorizePolicy
- Details of the authorization policy that granted or denied access.
This includes any ACL/Role binding that produced the result.boolean providerConfigured(java.util.Map<java.lang.String,?> configs)