|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.snmp2.agent.BaseAclTable
com.adventnet.snmp.snmp2.agent.AclTable
public class AclTable
This class is to provide common Acl Authentication to both the standalone SnmpAgent and multiprocol SnmpAgent - SnmpAdaptor
| Field Summary | |
|---|---|
(package private) AclTableFileToVector |
aclWriter
|
(package private) SnmpAgent |
agentName
|
(package private) java.lang.String |
fileName
|
(package private) boolean |
storage
|
(package private) java.lang.String |
storageType
|
| Fields inherited from class com.adventnet.snmp.snmp2.agent.BaseAclTable |
|---|
aclEntry, aclVec, modified |
| Constructor Summary | |
|---|---|
AclTable(SnmpAgent agentRef)
The Default Constructor without persistence storage option. |
|
AclTable(SnmpAgent agentRef,
java.lang.String name,
java.lang.String format)
The Constructor with persistence storage option. |
|
| Method Summary | |
|---|---|
boolean |
addAclEntry(AclEntryInterface entry)
This method Adds the given entry to the Agent Community Authentication Vector. |
protected AclTableFileToVector |
getAclTableFileToVector()
Method to get the AclTableFileToVector instance associated with this class. |
boolean |
isStorage()
Method to know whether this class has storage option or not. |
void |
setStorage(boolean isStorage)
Method to set the Storage option on or off. |
void |
storeData()
This method will be called after the addition of an Entry in the AclTable so that the Entry will be persisted as per the StorageType. |
protected void |
storeData(java.lang.String storageType)
The method to store the Table entries in the specified format. |
| Methods inherited from class com.adventnet.snmp.snmp2.agent.BaseAclTable |
|---|
getAclEntry, getAclEntryInstance, getTableVector, isModified, setModified, setTableVector |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
SnmpAgent agentName
boolean storage
java.lang.String storageType
java.lang.String fileName
AclTableFileToVector aclWriter
| Constructor Detail |
|---|
public AclTable(SnmpAgent agentRef)
agentRef - the SnmpAgent Reference.public AclTable(SnmpAgent agentRef, java.lang.String name, java.lang.String format)
agentRef - the SnmpAgent Reference.name - the fileName from where the entries are to be
populated and stored, default will be-AccessControlTable.xmlformat - The file format default will be "xml"(eg., "Text" for
Flat Text File format)| Method Detail |
|---|
public boolean addAclEntry(AclEntryInterface entry)
addAclEntry in class BaseAclTableentry - The AclEntry instance.
protected void storeData(java.lang.String storageType)
storageType - the StorageType string (eg., "xml" for XML storage).public void storeData()
public boolean isStorage()
public void setStorage(boolean isStorage)
isStorage - - true to turn on the Storage option and
false to turn off the same.protected AclTableFileToVector getAclTableFileToVector()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||