|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.snmp2.agent.SnmpV3Handler
class SnmpV3Handler
This class acts as a delegate for the SnmpAgent's V3 functionality. Any functions related to V3 in the SnmpAgent will be delegated to the instance of SnmpV3Handler in the SnmpAgent.
SnmpAgent| Field Summary | |
|---|---|
(package private) SnmpAgent |
agent
|
(package private) SnmpAPI |
api
|
(package private) java.lang.String |
fileName
|
(package private) SnmpV3 |
snmpV3
|
(package private) UsmUserRequestHandler |
usmUserListener
|
(package private) UsmUserTableRequestHandler |
usmUserTableListener
|
(package private) SnmpVacm |
vacm
|
| Constructor Summary | |
|---|---|
SnmpV3Handler(SnmpAgent agent,
SnmpAPI api)
Constructor that takes SnmpAgent instance and the API instance. |
|
| Method Summary | |
|---|---|
void |
doV3Initialization()
This method is responsible for initialising the V3 tables used by the agent. |
void |
doV3Initialization(java.lang.String dirStr,
java.lang.String storageType,
boolean communityAndTargetSupport)
The method to initialize the V3 Settings with the storage type given. |
SnmpCommunityTableRequestHandler |
getSnmpCommunityTableListener()
The method to get the SnmpCommunityTableListener. |
SnmpNotifyFilterProfileTableRequestHandler |
getSnmpNotifyFilterProfileTableListener()
The method to get the SnmpNotifyFilterProfileTableListener. |
SnmpNotifyFilterTableRequestHandler |
getSnmpNotifyFilterTableListener()
The method to get the SnmpNotifyFilterTableListener. |
SnmpNotifyTableRequestHandler |
getSnmpNotifyTableListener()
The method to get the SnmpNotifyTableListener. |
SnmpTargetAddrExtTableRequestHandler |
getSnmpTargetAddrExtTableListener()
The method to get the SnmpTargetAddrExtTableListener. |
SnmpTargetAddrTableRequestHandler |
getSnmpTargetAddrTableListener()
The method to get the SnmpTargetAddrTableListener. |
SnmpTargetParamsTableRequestHandler |
getSnmpTargetParamsTableListener()
The method to get the SnmpTargetParamsTableListener. |
SnmpVacm |
getSnmpVacm()
Getter method for SnmpVacm |
UsmUserTableRequestHandler |
getUsmUserTableListener()
The method to get the UsmUserTableListener. |
VacmAccessTableRequestHandler |
getVacmAccessTableListener()
The method to get the VacmAccessTableListener. |
VacmContextTableRequestHandler |
getVacmContextTableListener()
The method to get the VacmContextTableListener. |
VacmSecurityToGroupTableRequestHandler |
getVacmSecurityToGroupTableListener()
The method to get the VacmSecurityToGroupTableListener. |
VacmViewTreeFamilyTableRequestHandler |
getVacmViewTreeFamilyTableListener()
The method to get the VacmViewTreeFamilyTableListener. |
void |
initialiseV3Settings()
Deprecated. - As now all the Tables will be registered from the Generated Agent Main File itself. This method is responsible for initialising the V3 tables used by the agent. By default, the V3 tables are populated by reading the snmpv3.ser file in the agent directory. If the user wants to read from his own storage, it should be specified in the SnmpAgent through the V3Initialiser interface. |
void |
initializeAndRegisterForV3Compliance()
|
boolean |
isSnmpV3Compliance()
Getter for SNMP V3 Compliance. |
void |
serializeTable()
This method is called to serailize the different v3 parameters to the serialzed file . |
void |
setAcmUsed(boolean value)
Setter method for configuring whether VACM Check should be used by the SnmpAgent. |
void |
setSerializeFileName(java.lang.String fileName)
Setter for the serailized file used for storing the V3parameters. |
void |
setSnmpV3Compliance(boolean snmpV3Compliance)
Setter for SNMP V3 Compliance. |
void |
setSnmpVacm()
Initialises the SnmpVacm used from the SnmpAPI. |
(package private) void |
unregisterUSMTable()
This method unregisters the USM Table from the PDU RequestHandler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
SnmpAPI api
SnmpAgent agent
SnmpVacm vacm
SnmpV3 snmpV3
java.lang.String fileName
UsmUserRequestHandler usmUserListener
UsmUserTableRequestHandler usmUserTableListener
| Constructor Detail |
|---|
public SnmpV3Handler(SnmpAgent agent,
SnmpAPI api)
agent - SnmpAgent instanceapi - Instance of SnmpAPI| Method Detail |
|---|
public void setSnmpVacm()
SnmpVacmpublic SnmpVacm getSnmpVacm()
public void setAcmUsed(boolean value)
value - true if VACM should be enabled
false otherwise
public void setSerializeFileName(java.lang.String fileName)
throws SnmpException
fileName - name of the serialized file.
SnmpExceptionpublic void serializeTable()
public void initialiseV3Settings()
V3Initialiser,
in SnmpAgentvoid unregisterUSMTable()
public void setSnmpV3Compliance(boolean snmpV3Compliance)
snmpV3Compliance - The SNMP V3 compliance flag.isSnmpV3Compliance()public boolean isSnmpV3Compliance()
setSnmpV3Compliance(boolean snmpV3Compliance)public void initializeAndRegisterForV3Compliance()
public void doV3Initialization()
V3Initialiser,
in SnmpAgent
public void doV3Initialization(java.lang.String dirStr,
java.lang.String storageType,
boolean communityAndTargetSupport)
dirStr - The location where the files exists.storageType - The storage type String for the V3Tables.communityAndTargetSupport - The Community, Target and Notificaiton
support.public UsmUserTableRequestHandler getUsmUserTableListener()
public VacmAccessTableRequestHandler getVacmAccessTableListener()
public VacmContextTableRequestHandler getVacmContextTableListener()
public VacmSecurityToGroupTableRequestHandler getVacmSecurityToGroupTableListener()
public VacmViewTreeFamilyTableRequestHandler getVacmViewTreeFamilyTableListener()
public SnmpCommunityTableRequestHandler getSnmpCommunityTableListener()
public SnmpTargetAddrTableRequestHandler getSnmpTargetAddrTableListener()
public SnmpTargetAddrExtTableRequestHandler getSnmpTargetAddrExtTableListener()
public SnmpTargetParamsTableRequestHandler getSnmpTargetParamsTableListener()
public SnmpNotifyTableRequestHandler getSnmpNotifyTableListener()
public SnmpNotifyFilterTableRequestHandler getSnmpNotifyFilterTableListener()
public SnmpNotifyFilterProfileTableRequestHandler getSnmpNotifyFilterProfileTableListener()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||