|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.adventnet.snmp.snmp2.agent.BaseTableEntry
|
+--com.adventnet.snmp.snmp2.agent.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,
instanceOID |
| 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 |
|
| 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
public void setAclCommunity(java.lang.String value)
value - The Acl Community String to be set,
default value will be "public".
public java.lang.Integer getAclAccess()
throws AgentException
public void setAclAccess(java.lang.Integer value)
throws AgentException
vlaue - The Value to be set for Acl Access,
default value will be "READ_WRITE".
public java.lang.String getAclManagers()
throws AgentException
public void setAclManagers(java.lang.String value)
throws AgentException
value - The AclManager IPAddress String to be set,
eg., "192.168.1.98" default will be - "0:0:0:0" - access to all.
public java.lang.Integer getAclStatus()
throws AgentException
public void setAclStatus(java.lang.Integer value)
throws AgentException
value - The Integer Value of the AclStatus to be set,
default value will be "active(1)".public void setrowStatus(java.lang.Integer value)
AgentUtil.encodeInstanceString
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||