com.adventnet.snmp.snmp2.vacm
Class  VacmContextEntry
java.lang.Object
  |
  +--com.adventnet.snmp.snmp2.vacm.VacmContextEntry
- All Implemented Interfaces: 
 - java.io.Serializable
 
- public class VacmContextEntry
- extends java.lang.Object
- implements java.io.Serializable
   
This class contains the context entries for Vacm. It represents
  the vacmContextEntry OBJECT-TYPE (OID - .1.3.6.1.6.3.16.1.1.1) from the 
  ViewBasedAccessControl. This class has only one attribute, 
  the context name. The constructor creates a new contextEntry object with 
  the specified contextName. The VacmContextTable class maintains a list of
  VacmContextEntry objects.
  
- See Also: 
 VacmContextTable, Serialized Form
| 
Constructor Summary | 
VacmContextEntry(byte[] name)
 
          Creates a VacmContextEntry with the specified context name. | 
 
| 
Method Summary | 
 byte[] | 
getContextName()
 
          Get the VacmContextName associated with this object. | 
 java.lang.Object | 
getKey()
 
          Retrive the key for this VacmContextEntry. | 
static java.lang.Object | 
getKey(byte[] name)
 
          Retrive the key for this context entry. | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
VacmContextEntry
public VacmContextEntry(byte[] name)
- Creates a VacmContextEntry with the specified context name.
- Parameters:
 name - The contextName to be used for creating a new 
  VacmContextEntry object
 
 
getContextName
public byte[] getContextName()
- Get the VacmContextName associated with this object.
 The VacmContextName is a human readable name identifying a 
 particular context at a particular SNMP entity.
 
- Returns:
 - The contextName associated with this object.
 
 
 
getKey
public java.lang.Object getKey()
- Retrive the key for this VacmContextEntry.
 
- Returns:
 - the key as an Object
 
 
 
getKey
public static java.lang.Object getKey(byte[] name)
- Retrive the key for this context entry. Takes the context name as
  parameter.
 
- Parameters:
 contextName - which is the key.- Returns:
 - the key as a String object.
 
 
 
Copyright (c)AdventNet Inc., 1996-2004