- 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
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUsmUserTable.UsmUserKey
-
Field Summary
Fields Modifier and Type Field Description private static LogAdapterloggerprivate static longserialVersionUIDprivate java.util.Map<UsmUserTable.UsmUserKey,UsmUserEntry>table
-
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)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
logger
private static final LogAdapter logger
-
table
private java.util.Map<UsmUserTable.UsmUserKey,UsmUserEntry> table
-
-
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()
-
-