BasicVacmConfigurator
public interface VacmConfigurator
VacmConfigurator
defines an easy to use interface for MutableVACM
configuration.
Implementations of this class can provide role/group based VACM security configurations that hide all the
VACM
details. Each implementation of this interface defines a role and their security settings.Modifier and Type | Interface | Description |
---|---|---|
static class |
VacmConfigurator.VacmConfigResult |
Modifier and Type | Method | Description |
---|---|---|
VacmConfigurator.VacmConfigResult |
addUser(MutableVACM vacm,
org.snmp4j.smi.OctetString securityName,
java.lang.String role) |
Add a new user to a group.
|
java.lang.String[] |
getSupportedRoles() |
Returns the list of roles supported by this configurator.
|
VacmConfigurator.VacmConfigResult |
removeRole(MutableVACM vacm,
java.lang.String role) |
Remover all users from the specified security group and then remove the group itself.
|
VacmConfigurator.VacmConfigResult |
removeUser(MutableVACM vacm,
org.snmp4j.smi.OctetString securityName,
java.lang.String role) |
Remove a new user from the specified group.
|
VacmConfigurator.VacmConfigResult addUser(MutableVACM vacm, org.snmp4j.smi.OctetString securityName, java.lang.String role)
vacm
- the MutableVACM
to modifysecurityName
- the user name of the new user.role
- the group (VACM)/role name associated with the user. Only supported groups must ber provided.
See getSupportedRoles()
.VacmConfigurator.VacmConfigResult removeUser(MutableVACM vacm, org.snmp4j.smi.OctetString securityName, java.lang.String role)
VacmConfigurator.VacmConfigResult.userRemovedFromRole
will be returned.
If the role identified
by the group is not supported by this configurator, an error is returned.vacm
- the MutableVACM
to modifysecurityName
- the user name of the new user.role
- the group (VACM)/role name associated with the user. Only supported groups must be provided.
See getSupportedRoles()
.VacmConfigurator.VacmConfigResult removeRole(MutableVACM vacm, java.lang.String role)
VACM
provided, but not the USM
.vacm
- the MutableVACM
to modifyrole
- the group (VACM)/role to be removed from the above vacm
.java.lang.String[] getSupportedRoles()
Copyright © 2018 SNMP4J.org. All rights reserved.