Dangerous SNMP
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
securitymodel.hpp
1 #pragma once
2 
3 #include <string>
4 
5 namespace dangerous { namespace snmp {
6 
30 public:
34  enum Type {
35  ANY = 0,
36  SNMPv1 = 1,
37  SNMPv2c = 2,
38  USM = 3
39  };
40 
41 public:
42  virtual ~SecurityModel() {}
43 
49  Type type() const { return _type; }
50 
52  virtual bool isAuthenticated() const = 0;
53 
54 protected:
58 };
59 
60 } }
61 
virtual bool isAuthenticated() const =0
TODO: THIS.
This class is the base class for all security models.
Definition: securitymodel.hpp:29
Type
This identifies the security model.
Definition: securitymodel.hpp:34
Type type() const
This returns the identifier of the security model that this instance represents.
Definition: securitymodel.hpp:49
Type _type
This is the type of security model that this particular intance represents.
Definition: securitymodel.hpp:57