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
Modifier and TypeClassDescriptionstatic class
TheUsmUserKey
class defines the unique key forUsmUserTable
by engineID and securityName. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddUser
(UsmUserEntry user) Adds or replaces any existing entry with same engineID and securityName combination, seeUsmUserTable.UsmUserKey
.void
clear()
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
- anOctetString
denoting the user name.- Returns:
- a possibly empty
List
containing all user entries with the specifieduserName
.
-
getUserEntries
-
removeAllUsers
-
removeUser
-
getUser
-
getUser
-
clear
public void clear()
-