Class AgentPolicyProfile

java.lang.Object
org.snmp4j.agent.audit.AgentPolicyProfile
All Implemented Interfaces:
Serializable

public class AgentPolicyProfile extends Object implements Serializable
Represents a policy profile that defines various access rules and restrictions for an agent, including file access, network access, managed object access, and associated security levels.
Since:
3.12.0
Author:
Frank Fock
See Also:
  • Field Details

  • Constructor Details

    • AgentPolicyProfile

      public AgentPolicyProfile(AgentPolicyProfile.ManagedObjectAccess managedObjectAccess, AgentPolicyProfile.NetworkAccess networkAccess, AgentPolicyProfile.FileAccess fileAccess, org.snmp4j.security.SecurityLevel minSecurityLevel)
    • AgentPolicyProfile

      public AgentPolicyProfile(AgentPolicyProfile.ManagedObjectAccess managedObjectAccess, AgentPolicyProfile.NetworkAccess networkAccess, AgentPolicyProfile.FileAccess fileAccess, org.snmp4j.security.SecurityLevel minSecurityLevel, File[] allowedFiles, File[] allowedDirectories, Set<org.snmp4j.smi.Address> allowedAddresses, Map<org.snmp4j.smi.OID, AgentPolicyProfile.ManagedObjectAccess> allowedObjects)
    • AgentPolicyProfile

      public AgentPolicyProfile(AgentPolicyProfile other, File[] allowedFiles, File[] allowedDirectories, Set<org.snmp4j.smi.Address> allowedAddresses, Map<org.snmp4j.smi.OID, AgentPolicyProfile.ManagedObjectAccess> allowedObjects)
      Constructs a copy of the specified AgentPolicyProfile, adding the specified resource restrictions.
      Parameters:
      other - The existing AgentPolicyProfile to copy the base configuration from.
      allowedFiles - An array of File objects representing the files that are permissible for access in addition to the base configuration's allowed files.
      allowedDirectories - An array of File objects representing the directories that are permissible for access in addition to the base configuration's allowed files.
      allowedAddresses - A Set of Address objects representing the network addresses that are permissible for communication in addition to the base configuration's allowed files.
      allowedObjects - A Map containing OID keys and ManagedObjectAccess values, representing the objects that are permissible for management access in addition to the base configuration's allowed files.
  • Method Details