MySnmpCrawler API

snmp.accessctrl
Class DefaultAccessControl

java.lang.Object
  |
  +--snmp.accessctrl.DefaultAccessControl
All Implemented Interfaces:
AccessControl

public class DefaultAccessControl
extends java.lang.Object
implements AccessControl

This class provides the default implementation of the AccessControl component.

Version:
$Revision: 0.1 $ $Date: 2004/03/09 06:03:56 $
Author:
Scott Cheng

Constructor Summary
DefaultAccessControl()
           
 
Method Summary
 void checkAccess(SnmpSession session)
          By default it does not check anything.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAccessControl

public DefaultAccessControl()
Method Detail

checkAccess

public void checkAccess(SnmpSession session)
                 throws SnmpException
By default it does not check anything. You can override this method to provide the specific access check to meet your need.

Specified by:
checkAccess in interface AccessControl
Parameters:
session - The session to be checked.
Throws:
SnmpException - thrown when there is no permission for the session to access the managable resources or any other error occurs.

MySnmpCrawler API