Class AgentPolicyProfile
java.lang.Object
org.snmp4j.agent.audit.AgentPolicyProfile
- All Implemented Interfaces:
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTheFileAccessenumeration defines the levels of file access permissions that can be assigned to an entity.static enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AgentPolicyProfilestatic final AgentPolicyProfilestatic final String[]static final AgentPolicyProfilestatic final AgentPolicyProfile -
Constructor Summary
ConstructorsConstructorDescriptionAgentPolicyProfile(AgentPolicyProfile.ManagedObjectAccess managedObjectAccess, AgentPolicyProfile.NetworkAccess networkAccess, AgentPolicyProfile.FileAccess fileAccess, org.snmp4j.security.SecurityLevel minSecurityLevel) AgentPolicyProfile(AgentPolicyProfile.ManagedObjectAccess managedObjectAccess, AgentPolicyProfile.NetworkAccess networkAccess, AgentPolicyProfile.FileAccess fileAccess, org.snmp4j.security.SecurityLevel minSecurityLevel, String[] allowedFiles, String[] allowedDirectories, String[] allowedAddresses, Map<String, AgentPolicyProfile.ManagedObjectAccess> allowedObjects) AgentPolicyProfile(AgentPolicyProfile other, String[] allowedFiles, String[] allowedDirectories, String[] allowedAddresses, Map<String, AgentPolicyProfile.ManagedObjectAccess> allowedObjects) Constructs a copy of the specifiedAgentPolicyProfile, adding the specified resource restrictions. -
Method Summary
Modifier and TypeMethodDescriptionorg.snmp4j.security.SecurityLevel
-
Field Details
-
DEFAULT_ALLOWED_FILES
-
DEFAULT
-
LOCALHOST
-
SITE_LOCAL
-
CONFIDENTIAL
-
-
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, String[] allowedFiles, String[] allowedDirectories, String[] allowedAddresses, Map<String, AgentPolicyProfile.ManagedObjectAccess> allowedObjects) -
AgentPolicyProfile
public AgentPolicyProfile(AgentPolicyProfile other, String[] allowedFiles, String[] allowedDirectories, String[] allowedAddresses, Map<String, AgentPolicyProfile.ManagedObjectAccess> allowedObjects) Constructs a copy of the specifiedAgentPolicyProfile, adding the specified resource restrictions.- Parameters:
other- The existingAgentPolicyProfileto copy the base configuration from.allowedFiles- An array ofFileobjects representing the files that are permissible for access in addition to the base configuration's allowed files.allowedDirectories- An array ofFileobjects representing the directories that are permissible for access in addition to the base configuration's allowed files.allowedAddresses- ASetofAddressobjects representing the network addresses that are permissible for communication in addition to the base configuration's allowed files.allowedObjects- AMapcontainingOIDkeys andManagedObjectAccessvalues, representing the objects that are permissible for management access in addition to the base configuration's allowed files.
-
-
Method Details
-
getAllowedFiles
-
getManagedObjectAccess
-
getNetworkAccess
-
getFileAccess
-
getMinSecurityLevel
public org.snmp4j.security.SecurityLevel getMinSecurityLevel() -
getAllowedDirectories
-
getAllowedAddresses
-
getAllowedObjects
-