Dangerous SNMP
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
SecurityModel Class Referenceabstract

This class is the base class for all security models. More...

#include <securitymodel.hpp>

Inheritance diagram for SecurityModel:
USM

Public Types

enum  Type { ANY = 0, SNMPv1 = 1, SNMPv2c = 2, USM = 3 }
 This identifies the security model.
 

Public Member Functions

Type type () const
 This returns the identifier of the security model that this instance represents. More...
 
virtual bool isAuthenticated () const =0
 TODO: THIS.
 

Protected Attributes

Type _type
 This is the type of security model that this particular intance represents. More...
 

Detailed Description

This class is the base class for all security models.

A security model is basically just a way of describing the security (however weak) of the SNMP communication.

See RFC-3411.

There are three standardized models:

  1. SNMPv1 This is basically just stating that whatever SNMPv1 did in terms of security (community strings), then this is that.
  2. SNMPv2 This is basically just stating that whatever SNMPv2 did in terms of security (community strings), then this is that.
  3. User-based Security Model (USM) This is the model that is required to be supported by any SNMPv3 agent.

Others are possible (including enterprise-specific ones).

Member Function Documentation

Type type ( ) const
inline

This returns the identifier of the security model that this instance represents.

Returns
The type of security model.

Member Data Documentation

Type _type
protected

This is the type of security model that this particular intance represents.


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