com.adventnet.snmp.snmp2
Class SnmpACM

java.lang.Object
  |
  +--com.adventnet.snmp.snmp2.SnmpACM
Direct Known Subclasses:
SnmpVacm

public abstract class SnmpACM
extends java.lang.Object

This class is used for ACM implementation and provides the abstract method isAccessAllowed which does the access verifications. The access verifications are performed only if the acmUsed flag is set to true. The method setAcmUsed is used to set the vacmUsed flag.


Constructor Summary
SnmpACM()
           
 
Method Summary
abstract  int isAccessAllowed(SnmpPDU pdu, SnmpOID oid)
          This method processess the isAccessAllowed request.
abstract  boolean isAcmUsed()
          Gets the status of the acmUsed flag.
abstract  void setAcmUsed(boolean used)
          This method is used to set the acmUsed flag.
protected  void setDBOperations(com.adventnet.snmp.snmp2.DatabaseOperations dbOps)
           
protected  void setV3DatabaseFlag(boolean dbFlag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnmpACM

public SnmpACM()
Method Detail

setAcmUsed

public abstract void setAcmUsed(boolean used)
This method is used to set the acmUsed flag. Only if this flag is set to true, the access verifications are performed.
Parameters:
used - The boolean value to set the acmUsed flag.

isAcmUsed

public abstract boolean isAcmUsed()
Gets the status of the acmUsed flag.
Returns:
True if the flag acmUsed is set. Returns false otherwise

isAccessAllowed

public abstract int isAccessAllowed(SnmpPDU pdu,
                                    SnmpOID oid)
This method processess the isAccessAllowed request. The isAccessAllowed performs the access verifications according to the procedure specified by the particular ACCESS CONTROL MODEL. The SnmpPDU which is the input parameter, has all the data elements required for access verifications. The SnmpOID parameter is the Object Identifier for which the access verifications are to be performed. The isAccessAllowed returns an intger value which is a success or an errorIndication.
Parameters:
pdu - The SnmpPDU which has all the parameters required for processing the isAccessAllowed.(context,securityName,securityModel etc.)
oid - The SnmpOID. It has the Object Identifier for which the access verifications are to be performed.
Returns:
an integer value.

setDBOperations

protected void setDBOperations(com.adventnet.snmp.snmp2.DatabaseOperations dbOps)

setV3DatabaseFlag

protected void setV3DatabaseFlag(boolean dbFlag)


Copyright (c)AdventNet Inc., 1996-2004