| Package | Description |
|---|---|
| org.apache.knox.gateway.audit.api | |
| org.apache.knox.gateway.audit.log4j.audit |
| Modifier and Type | Method and Description |
|---|---|
AuditContext |
AuditService.createContext()
Creates and attaches an "empty" audit context.
|
AuditContext |
AuditService.detachContext()
Detaches the current audit context, if any, from the current thread.
|
AuditContext |
AuditService.getContext()
Retrieves the current attached audit context, if any.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AuditService.attachContext(AuditContext context)
Attaches the provided audit context to the current thread.
|
void |
Auditor.audit(CorrelationContext correlationContext,
AuditContext auditContext,
String action,
String resourceName,
String resourceType,
String outcome,
String message)
Records a single audit event.
|
<T> T |
AuditService.execute(AuditContext context,
Callable<T> callable)
Executes the callable within the provided audit context.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Log4jAuditContext |
| Modifier and Type | Method and Description |
|---|---|
AuditContext |
Log4jAuditService.createContext() |
AuditContext |
Log4jAuditService.detachContext() |
AuditContext |
Log4jAuditService.getContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
Log4jAuditService.attachContext(AuditContext context) |
void |
Log4jAuditor.audit(CorrelationContext correlationContext,
AuditContext auditContext,
String action,
String resourceName,
String resourceType,
String outcome,
String message) |
<T> T |
Log4jAuditService.execute(AuditContext context,
Callable<T> callable) |
Copyright © 2022 The Apache Software Foundation. All rights reserved.