Interface AgentAuditPolicy
- All Superinterfaces:
EventListener, FileAuditListener, MOServerLookupListener, org.snmp4j.transport.TransportAuditListener
- All Known Implementing Classes:
DefaultAgentAuditPolicy
public interface AgentAuditPolicy
extends MOServerLookupListener, org.snmp4j.transport.TransportAuditListener, FileAuditListener
The
AgentAuditPolicy interface defines the audit policy for an SNMP agent to audit
managed object access, transport access, and file access.- Since:
- 3.12.0
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the current audit level for the agent.default booleanDetermines whether the audit feature of the agent is enabled.Methods inherited from interface FileAuditListener
fileAuditMethods inherited from interface MOServerLookupListener
completedUse, lookupEvent, queryEventMethods inherited from interface org.snmp4j.transport.TransportAuditListener
transportAudit
-
Method Details
-
getAuditLevel
AgentAuditLevel getAuditLevel()Retrieves the current audit level for the agent. The audit level specifies the behavior of the agent in logging and enforcing access to managed objects and transport operations.- Returns:
- the current audit level, which can be one of the following:
OFF,LOG,WARN, orRESTRICT.
-
isAuditEnabled
default boolean isAuditEnabled()Determines whether the audit feature of the agent is enabled. The audit is considered enabled if the currentAgentAuditLevelis not set toOFF.- Returns:
trueif audit is enabled,falseotherwise.
-