|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.adventnet.snmp.snmp2.ACMProvider
This class is used to register the appropriate access control model to be used with AdventNet SNMP API. The API user does not need to instantiate this class. Instead the SnmpAPI instantiates it and provides the method 'getACMProvider()' to get the access control Provider reference. With this reference the user has to register the appropriate access control Model, using the registerAccessControlModel method by specifying the pdu type(v1/v2c/v3), and the acm implementation class names. By default the VACM is registered. So there is no need to register it again.
AdventNet SNMP API also provides an abstract class SnmpACM, which contains an abstract method isAccessAllowed. The SnmpACM should be extended to provide acm model specific attributes.
SnmpACM
Method Summary | |
java.lang.Object |
getAccessControlModel(int pduType)
Returns the AccessControlModel Object which is registered. |
java.lang.String |
getClassName(int pduType)
Returns the SnmpACM class names registered. |
java.lang.Object |
initACM(int pduType)
Creates a new ACM Object for the specific access control Model. |
boolean |
isSupportedAccessControlModel(int pduType)
Specifies if a particular acm model is supported or not. |
boolean |
registerAccessControlModel(int pduType,
java.lang.String ACMClassName)
Registers a particular ACM model to be used. |
boolean |
unRegisterAccessControlModel(int pduType)
Unregisters a supported acm model. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.lang.Object initACM(int pduType) throws SnmpException
SnmpException
- appropriate ACM object
instance could not be created.getAccessControlModel(int)
public java.lang.Object getAccessControlModel(int pduType)
pduType
- The pduType for which the particular
AccessControlModel is registered.public boolean registerAccessControlModel(int pduType, java.lang.String ACMClassName)
pduType
- The pdu type for which the access control is to
to be applied.ACMClassName
- The class name of the acm class that
extends the SnmpACM.public boolean unRegisterAccessControlModel(int pduType)
pduType
- The pdu type for which the acm is to be unregistered.public boolean isSupportedAccessControlModel(int pduType)
pduType
- The pdu type for which the acm model needs to be
checked if it is supported.public java.lang.String getClassName(int pduType)
pduType
- The pdu type for which the acm model
class has to be retrived.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |