User security model implementation class.
Inheritance: AsnType, ICloneable
Exemplo n.º 1
0
 /// <summary>
 /// Standard constructor.
 /// </summary>
 public SnmpV3Packet()
     : base(SnmpVersion.Ver3)
 {
     _messageId           = new Integer32();
     _maxMessageSize      = new Integer32(64 * 1024);
     _msgFlags            = new MsgFlags();
     _msgFlags.Reportable = true;             // Make sure reportable is set to true by default
     _securityModel       = new Integer32();
     _userSecurityModel   = new UserSecurityModel();
     _scopedPdu           = new ScopedPdu();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 /// <param name="value">Class to copy values from</param>
 public UserSecurityModel(UserSecurityModel value)
     : this()
 {
     _engineId.Set(value.EngineId);
     _engineBoots.Value = value.EngineBoots;
     _engineTime.Value  = value.EngineTime;
     _securityName.Set(value.SecurityName);
     _authenticationParameters = new OctetString();
     _privacySecret            = new MutableByte();
     _privacy           = PrivacyProtocols.None;
     _privacyParameters = new OctetString();
 }
Exemplo n.º 3
0
        /// <summary>Standard constructor.</summary>
        public SnmpV3Packet()
            : base(ESnmpVersion.Ver3)
        {
            messageId      = new Integer32();
            maxMessageSize = new Integer32(64 * 1024);

            messageFlags = new MsgFlags
            {
                Reportable = true, // Make sure reportable is set to true by default
            };

            securityModel     = new Integer32();
            userSecurityModel = new UserSecurityModel();
            scopedPdu         = new ScopedPdu();
        }
Exemplo n.º 4
0
 /// <summary>
 /// Standard constructor.
 /// </summary>
 public SnmpV3Packet()
     : base(SnmpVersion.Ver3)
 {
     _messageId = new Integer32();
     _maxMessageSize = new Integer32(64 * 1024);
     _msgFlags = new MsgFlags();
     _msgFlags.Reportable = true; // Make sure reportable is set to true by default
     _securityModel = new Integer32();
     _userSecurityModel = new UserSecurityModel();
     _scopedPdu = new ScopedPdu();
 }
Exemplo n.º 5
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 /// <param name="value">Class to copy values from</param>
 public UserSecurityModel(UserSecurityModel value)
     : this()
 {
     _engineId.Set(value.EngineId);
     _engineBoots.Value = value.EngineBoots;
     _engineTime.Value = value.EngineTime;
     _securityName.Set(value.SecurityName);
     _authenticationParameters = new OctetString();
     _privacySecret = new MutableByte();
     _privacy = PrivacyProtocols.None;
     _privacyParameters = new OctetString();
 }