AgentX++  2.0.5
Public Member Functions | List of all members
NoVacm Class Reference

#include <agentx_request.h>

Inheritance diagram for NoVacm:

Public Member Functions

 NoVacm ()
 
virtual ~NoVacm ()
 
virtual int isAccessAllowed (const int securityModel, const NS_SNMP OctetStr &securityName, const int securityLevel, const int viewType, const NS_SNMP OctetStr &context, const Oidx &o)
 Does the user have the rights to access the Oid.
 
virtual int isAccessAllowed (const NS_SNMP OctetStr &viewName, const Oidx &o)
 Is the oid within the view.
 
virtual int getViewName (const int securityModel, const NS_SNMP OctetStr &securityName, const int securityLevel, const int viewType, const NS_SNMP OctetStr &context, NS_SNMP OctetStr &viewName)
 Get the view name for the given params.
 

Constructor & Destructor Documentation

NoVacm::NoVacm ( )
virtual NoVacm::~NoVacm ( )
virtual

Member Function Documentation

virtual int NoVacm::getViewName ( const int  securityModel,
const NS_SNMP OctetStr &  securityName,
const int  securityLevel,
const int  viewType,
const NS_SNMP OctetStr &  context,
NS_SNMP OctetStr &  viewName 
)
inlinevirtual

Get the view name for the given params.

Parameters
[in]securityModelThe security model used
[in]securityNameThe security name of the user
[in]securityLevelThe security level
[in]viewTypeSelect one of mibView_read, write or notify
[in]contextThe MIB context
[out]viewNameIf found, the name of the matching view
Returns
VACM_viewFound on success, error codes on failure
virtual int NoVacm::isAccessAllowed ( const int  securityModel,
const NS_SNMP OctetStr &  securityName,
const int  securityLevel,
const int  viewType,
const NS_SNMP OctetStr &  context,
const Oidx &  o 
)
inlinevirtual

Does the user have the rights to access the Oid.

All parameters are used to check if access is allowed.

Parameters
[in]securityModelThe security model used
[in]securityNameThe security name of the user
[in]securityLevelThe security level
[in]viewTypeRead, write or notify view
[in]contextThe MIB context
[in]oThe Oid the user wants to access
Returns
true if access is allowed
virtual int NoVacm::isAccessAllowed ( const NS_SNMP OctetStr &  viewName,
const Oidx &  o 
)
inlinevirtual

Is the oid within the view.

Check if the given Oid is within the named view.

Parameters
[in]viewNameName of the view
[in]oOid to check
Returns
true if the oid is within the view

The documentation for this class was generated from the following file: