- java.lang.Object
-
- org.snmp4j.security.UsmUserTable
-
- All Implemented Interfaces:
java.io.Serializable
public class UsmUserTable extends java.lang.Object implements java.io.Serializable
TheUsmUserTable
class stores USM user information as part of the Local Configuration Datastore (LCD).- Version:
- 1.1
- Author:
- Frank Fock
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UsmUserTable.UsmUserKey
-
Constructor Summary
Constructors Constructor Description UsmUserTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UsmUserEntry
addUser(UsmUserEntry user)
void
clear()
UsmUserEntry
getUser(OctetString securityName)
UsmUserEntry
getUser(OctetString engineID, OctetString securityName)
java.util.List<UsmUserEntry>
getUserEntries()
java.util.List<UsmUserEntry>
getUserEntries(OctetString userName)
Gets all user entries with the supplied user name.java.util.List<UsmUserEntry>
removeAllUsers(OctetString securityName, OctetString engineID)
UsmUserEntry
removeUser(OctetString engineID, OctetString securityName)
void
setUsers(java.util.Collection<UsmUserEntry> c)
-
-
-
Method Detail
-
addUser
public UsmUserEntry addUser(UsmUserEntry user)
-
setUsers
public void setUsers(java.util.Collection<UsmUserEntry> c)
-
getUserEntries
public java.util.List<UsmUserEntry> getUserEntries(OctetString userName)
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
public java.util.List<UsmUserEntry> getUserEntries()
-
removeAllUsers
public java.util.List<UsmUserEntry> removeAllUsers(OctetString securityName, OctetString engineID)
-
removeUser
public UsmUserEntry removeUser(OctetString engineID, OctetString securityName)
-
getUser
public UsmUserEntry getUser(OctetString engineID, OctetString securityName)
-
getUser
public UsmUserEntry getUser(OctetString securityName)
-
clear
public void clear()
-
-