org.snmp4j.security
Class UsmUserTable

java.lang.Object
  extended by org.snmp4j.security.UsmUserTable
All Implemented Interfaces:
java.io.Serializable

public class UsmUserTable
extends java.lang.Object
implements java.io.Serializable

The UsmUserTable 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
static class UsmUserTable.UsmUserKey
           
 
Constructor Summary
UsmUserTable()
           
 
Method Summary
 UsmUserEntry addUser(UsmUserEntry user)
           
 void clear()
           
 UsmUserEntry getUser(OctetString securityName)
           
 UsmUserEntry getUser(OctetString engineID, OctetString securityName)
           
 java.util.List getUserEntries()
           
 java.util.List getUserEntries(OctetString userName)
          Gets all user entries with the supplied user name.
 UsmUserEntry removeUser(OctetString engineID, OctetString securityName)
           
 void setUsers(java.util.Collection c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsmUserTable

public UsmUserTable()
Method Detail

addUser

public UsmUserEntry addUser(UsmUserEntry user)

setUsers

public void setUsers(java.util.Collection c)

getUserEntries

public java.util.List getUserEntries(OctetString userName)
Gets all user entries with the supplied user name.

Parameters:
userName - an OctetString denoting the user name.
Returns:
a possibly empty List containing all user entries with the specified userName.

getUserEntries

public java.util.List getUserEntries()

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()

Copyright 2005-2010 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.