|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.snmp2.agent.BaseTableEntry
com.adventnet.snmp.snmp2.agent.AclEntry
public class AclEntry
This class is the default implementation of the AclEntryInterface of the v1/v2c SnmpAgent for access control. This represents a single entry for the AclTable in the AGENT-SNMP-CONFIG-MIB
| Field Summary | |
|---|---|
protected java.lang.Integer |
aclAccess
This gives the Access level for each community types. |
protected java.lang.String |
aclCommunity
This represents the Community of this Access Control List Entry. |
protected java.lang.String |
aclManagers
This is the Managers List. |
protected java.lang.Integer |
aclStatus
This tells the Status of this Access Control Entry. |
protected int[] |
instanceOID
The Instance OID Value. |
static int |
NO_ACCESS
Static variable to specify the community access of the entry as NO_ACCESS |
static int |
READ_ONLY
Static variable to specify the community access of the entry as READ_ONLY |
static int |
READ_WRITE
Static variable to specify the community access of the entry as READ_WRITE |
static int |
WRITE_ONLY
Static variable to specify the community access of the entry as WRITE_ONLY |
| Fields inherited from class com.adventnet.snmp.snmp2.agent.BaseTableEntry |
|---|
agentName |
| Constructor Summary | |
|---|---|
AclEntry()
The Default Constructor for Acl Entry. |
|
| Method Summary | |
|---|---|
java.lang.Integer |
getAclAccess()
Handles the SNMP Get Request for aclAccess. |
java.lang.String |
getAclCommunity()
Handles the SNMP Get Request for aclCommunity. |
java.lang.String |
getAclManagers()
Handles the SNMP Get Request for aclManagers. |
java.lang.Integer |
getAclStatus()
Handles the SNMP Get Request for aclStatus. |
void |
setAclAccess(java.lang.Integer value)
Handles the SNMP Set Request for aclAccess. |
void |
setAclCommunity(java.lang.String value)
Handles the SNMP Set Request for aclCommunity. |
void |
setAclManagers(java.lang.String value)
Handles the SNMP Set Request for aclManagers. |
void |
setAclStatus(java.lang.Integer value)
Handles the SNMP Set Request for aclStatus. |
void |
setrowStatus(java.lang.Integer value)
This method is used for recomputing the Instance OID. |
| Methods inherited from class com.adventnet.snmp.snmp2.agent.BaseTableEntry |
|---|
computeInstanceOID, decrementCount, getAttributes, getCount, getInstanceOID, setAgentRef, setCount, setInstanceOID |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.adventnet.utils.agent.TableEntry |
|---|
computeInstanceOID, getInstanceOID, setInstanceOID |
| Field Detail |
|---|
protected java.lang.String aclCommunity
protected java.lang.Integer aclAccess
The Different Access Levels are,
protected java.lang.String aclManagers
protected java.lang.Integer aclStatus
This is the RowStatus column of enumerations,
public static int NO_ACCESS
public static int READ_ONLY
public static int WRITE_ONLY
public static int READ_WRITE
protected int[] instanceOID
| Constructor Detail |
|---|
public AclEntry()
| Method Detail |
|---|
public java.lang.String getAclCommunity()
throws AgentException
getAclCommunity in interface AclEntryInterfaceAgentException - This Wraps all the Exceptions thrown
while processing this event.public void setAclCommunity(java.lang.String value)
setAclCommunity in interface AclEntryInterfacevalue - The Acl Community String to be set,
default value will be "public".
public java.lang.Integer getAclAccess()
throws AgentException
getAclAccess in interface AclEntryInterfaceAgentException - This Wraps all the Exceptions thrown
while processing this event.
public void setAclAccess(java.lang.Integer value)
throws AgentException
setAclAccess in interface AclEntryInterfacevlaue - The Value to be set for Acl Access,
default value will be "READ_WRITE".
AgentException - This Wraps all the Exceptions thrown
while processing this event.
public java.lang.String getAclManagers()
throws AgentException
getAclManagers in interface AclEntryInterfaceAgentException - This Wraps all the Exceptions thrown
while processing this event.
public void setAclManagers(java.lang.String value)
throws AgentException
setAclManagers in interface AclEntryInterfacevalue - The AclManager IPAddress String to be set,
eg., "192.168.1.98" default will be - "0:0:0:0" - access to all.
AgentException - This Wraps all the Exceptions thrown
while processing this event.
public java.lang.Integer getAclStatus()
throws AgentException
getAclStatus in interface AclEntryInterfaceAgentException - This Wraps all the Exceptions thrown
while processing this event.
public void setAclStatus(java.lang.Integer value)
throws AgentException
setAclStatus in interface AclEntryInterfacevalue - The Integer Value of the AclStatus to be set,
default value will be "active(1)".
AgentException - This Wraps all the Exceptions thrown
while processing this event.public void setrowStatus(java.lang.Integer value)
setrowStatus in interface RowStatusHandlerInterfacevalue - the Integer specifying the rowStatus value.AgentUtil.encodeInstanceString
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||