- java.lang.Object
-
- org.snmp4j.security.UsmUserTable
-
- All Implemented Interfaces:
java.io.Serializable
public class UsmUserTable extends java.lang.Object implements java.io.SerializableTheUsmUserTableclass 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 classUsmUserTable.UsmUserKey
-
Constructor Summary
Constructors Constructor Description UsmUserTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UsmUserEntryaddUser(UsmUserEntry user)voidclear()UsmUserEntrygetUser(OctetString securityName)UsmUserEntrygetUser(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)UsmUserEntryremoveUser(OctetString engineID, OctetString securityName)voidsetUsers(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- anOctetStringdenoting the user name.- Returns:
- a possibly empty
Listcontaining 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()
-
-