java.lang.Object
org.snmp4j.security.UsmUserTable
- All Implemented Interfaces:
Serializable
The
UsmUserTable class stores USM user
information as part of the Local Configuration Datastore (LCD).- Version:
- 1.1
- Author:
- Frank Fock
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTheUsmUserKeyclass defines the unique key forUsmUserTableby engineID and securityName. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddUser(UsmUserEntry user) Adds or replaces any existing entry with same engineID and securityName combination, seeUsmUserTable.UsmUserKey.voidclear()getUser(OctetString securityName) getUser(OctetString engineID, OctetString securityName) getUserEntries(OctetString userName) Gets all user entries with the supplied user name.removeAllUsers(OctetString securityName, OctetString engineID) removeUser(OctetString engineID, OctetString securityName) void
-
Constructor Details
-
UsmUserTable
public UsmUserTable()
-
-
Method Details
-
addUser
Adds or replaces any existing entry with same engineID and securityName combination, seeUsmUserTable.UsmUserKey.- Parameters:
user- the localized USM user entry.- Returns:
- the previously registered entry with same engineID and securityName or otherwise
null.
-
setUsers
-
getUserEntries
Gets all user entries with the supplied user name.- Parameters:
userName- anOctetStringdenoting the user name.- Returns:
- a possibly empty
Listcontaining all user entries with the specifieduserName.
-
getUserEntries
-
removeAllUsers
-
removeUser
-
getUser
-
getUser
-
clear
public void clear()
-