com.adventnet.snmp.snmp2.vacm
Class VacmGroupAccessEntry

java.lang.Object
  extended by com.adventnet.snmp.snmp2.vacm.VacmGroupAccessEntry
All Implemented Interfaces:
java.io.Serializable

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

This class is used to keep track of the VacmAccessEntry object for each unique group name. It maintains a list of VacmAccessEntry objects for each group name. There is no need for the API user to instantiate this class. Once the VacmAccessEntry object is created, it has to added to the VacmGroupAccessTable. The VacmGroupAccessTable instantiates this class.

See Also:
VacmGroupAccessTable, Serialized Form

Field Summary
(package private)  java.util.Vector accessEntryVector
          Vector of VacmAccessEntry objects.
(package private)  byte[] groupName
          The VacmGroupName
 
Constructor Summary
VacmGroupAccessEntry(byte[] name)
          Creates a VacmGroupAccessEntry using the specified group name.
 
Method Summary
(package private)  void addElement(VacmAccessEntry entry)
          Adds the VacmAccessEntry object to accessEntryVector.
 java.util.Vector getAccessEntries()
          Returns an vector of VacmAccessEntries maintained by this class.
 byte[] getGroupName()
          Get the VacmGroupName associated with this object.
 java.lang.Object getKey()
          Retrive the key for this VacmGroupAccessEntry.
static java.lang.Object getKey(byte[] groupName)
          Retrive the key for this VacmGroupAccessEntry.
(package private)  VacmAccessEntry getMibView(int secModel, byte secLevel, byte[] contextName)
          Get the single VacmAccessEntry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

groupName

byte[] groupName
The VacmGroupName


accessEntryVector

java.util.Vector accessEntryVector
Vector of VacmAccessEntry objects. The vector is mainted as sorted.

Constructor Detail

VacmGroupAccessEntry

VacmGroupAccessEntry(byte[] name)
Creates a VacmGroupAccessEntry using the specified group name.

Parameters:
name - The VacmGroupName
Method Detail

getGroupName

public byte[] getGroupName()
Get the VacmGroupName associated with this object.

Returns:
The VacmGroupName associated with this object.

getAccessEntries

public java.util.Vector getAccessEntries()
Returns an vector of VacmAccessEntries maintained by this class.

Returns:
A vector of VacmAccessEntry objects mainted by this class.

addElement

void addElement(VacmAccessEntry entry)
Adds the VacmAccessEntry object to accessEntryVector. Called from addEntry method in VacmGroupAccessTable.

Parameters:
entry - The VacmAccessEntry

getKey

public java.lang.Object getKey()
Retrive the key for this VacmGroupAccessEntry.

Returns:
The key as an Object

getKey

public static java.lang.Object getKey(byte[] groupName)
Retrive the key for this VacmGroupAccessEntry. Takes the group name as parameter.

Parameters:
groupName - The VacmGroupName
Returns:
the key as a String object.

getMibView

VacmAccessEntry getMibView(int secModel,
                           byte secLevel,
                           byte[] contextName)
Get the single VacmAccessEntry. Returns the access entry object so that the proper viewName from that entry is to be used for access control checking. All the input parameters are the parameters used for processing the isAccessAllowed.

Parameters:
secModel - The requested securityModel
secLevel - The requested securityLevel
comtextName - The requested contextName