#include <vacm_class.h>
Public Member Functions | |
Vacm () | |
Vacm (Mib &) | |
virtual | ~Vacm () |
virtual int | isAccessAllowed (int model, NS_SNMP OctetStr name, int level, int viewType, NS_SNMP OctetStr context, Oidx o) |
virtual int | isAccessAllowed (NS_SNMP OctetStr viewName, Oidx o) |
int | getViewName (int model, NS_SNMP OctetStr name, int level, int viewType, NS_SNMP OctetStr context, NS_SNMP OctetStr &viewName) |
void | incUnknownContexts () |
NS_SNMP SnmpInt32 | getUnknownContexts () |
boolean | addNewContext (const NS_SNMP OctetStr &newContext) |
Add a new context to the VacmContextTable. | |
void | deleteContext (const NS_SNMP OctetStr &context) |
Delete the given context from the VacmContextTable. | |
boolean | addNewGroup (int securityModel, const NS_SNMP OctetStr &securityName, const NS_SNMP OctetStr &groupName, int storageType) |
Add a new security name to group mapping to the VacmSecurityToGroupTable. | |
void | deleteGroup (int securityModel, const NS_SNMP OctetStr &securityName) |
Delete the given securityName from the VacmSecurityToGroupTable. | |
boolean | addNewAccessEntry (const NS_SNMP OctetStr &groupName, const NS_SNMP OctetStr &prefix, int securityModel, int securityLevel, int match, const NS_SNMP OctetStr &readView, const NS_SNMP OctetStr &writeView, const NS_SNMP OctetStr ¬ifyView, int storageType) |
Add a new entry to the VacmAccessTable. | |
void | deleteAccessEntry (const NS_SNMP OctetStr &groupName, const NS_SNMP OctetStr &prefix, int securityModel, int securityLevel) |
Delete a entry from the VacmAccessTable. | |
boolean | addNewView (const NS_SNMP OctetStr &viewName, const Oidx &subtree, const NS_SNMP OctetStr &mask, int type, int storageType) |
Add a new view to the VacmViewTreeFamilyTable. | |
void | deleteView (const NS_SNMP OctetStr &viewName, const Oidx &subtree) |
Delete the subtree from the view from the VacmViewTreeFamilyTable. | |
ClassPointers | get_vacm_tables () |
Get the pointers to the VACM SNMP tables used by the VACM. | |
Static Public Member Functions | |
static const char * | getErrorMsg (int nr) |
Protected Attributes | |
ClassPointers | vcp |
Classes | |
struct | ClassPointers |
Vacm::Vacm | ( | ) |
Vacm::Vacm | ( | Mib & | ) |
virtual Vacm::~Vacm | ( | ) | [virtual] |
virtual int Vacm::isAccessAllowed | ( | int | model, | |
NS_SNMP OctetStr | name, | |||
int | level, | |||
int | viewType, | |||
NS_SNMP OctetStr | context, | |||
Oidx | o | |||
) | [virtual] |
virtual int Vacm::isAccessAllowed | ( | NS_SNMP OctetStr | viewName, | |
Oidx | o | |||
) | [virtual] |
int Vacm::getViewName | ( | int | model, | |
NS_SNMP OctetStr | name, | |||
int | level, | |||
int | viewType, | |||
NS_SNMP OctetStr | context, | |||
NS_SNMP OctetStr & | viewName | |||
) |
void Vacm::incUnknownContexts | ( | ) |
NS_SNMP SnmpInt32 Vacm::getUnknownContexts | ( | ) |
static const char* Vacm::getErrorMsg | ( | int | nr | ) | [inline, static] |
boolean Vacm::addNewContext | ( | const NS_SNMP OctetStr & | newContext | ) |
Add a new context to the VacmContextTable.
void Vacm::deleteContext | ( | const NS_SNMP OctetStr & | context | ) |
Delete the given context from the VacmContextTable.
boolean Vacm::addNewGroup | ( | int | securityModel, | |
const NS_SNMP OctetStr & | securityName, | |||
const NS_SNMP OctetStr & | groupName, | |||
int | storageType | |||
) |
Add a new security name to group mapping to the VacmSecurityToGroupTable.
void Vacm::deleteGroup | ( | int | securityModel, | |
const NS_SNMP OctetStr & | securityName | |||
) |
Delete the given securityName from the VacmSecurityToGroupTable.
boolean Vacm::addNewAccessEntry | ( | const NS_SNMP OctetStr & | groupName, | |
const NS_SNMP OctetStr & | prefix, | |||
int | securityModel, | |||
int | securityLevel, | |||
int | match, | |||
const NS_SNMP OctetStr & | readView, | |||
const NS_SNMP OctetStr & | writeView, | |||
const NS_SNMP OctetStr & | notifyView, | |||
int | storageType | |||
) |
Add a new entry to the VacmAccessTable.
void Vacm::deleteAccessEntry | ( | const NS_SNMP OctetStr & | groupName, | |
const NS_SNMP OctetStr & | prefix, | |||
int | securityModel, | |||
int | securityLevel | |||
) |
Delete a entry from the VacmAccessTable.
boolean Vacm::addNewView | ( | const NS_SNMP OctetStr & | viewName, | |
const Oidx & | subtree, | |||
const NS_SNMP OctetStr & | mask, | |||
int | type, | |||
int | storageType | |||
) |
Add a new view to the VacmViewTreeFamilyTable.
void Vacm::deleteView | ( | const NS_SNMP OctetStr & | viewName, | |
const Oidx & | subtree | |||
) |
Delete the subtree from the view from the VacmViewTreeFamilyTable.
ClassPointers Vacm::get_vacm_tables | ( | ) | [inline] |
Get the pointers to the VACM SNMP tables used by the VACM.
ClassPointers Vacm::vcp [protected] |