IPWorks SNMP 2020 Android Edition

Questions / Feedback?

GetUserSecurityLevel Event

Sets the security level for an incoming packet.

Syntax

public class DefaultSnmptrapmgrEventListener implements SnmptrapmgrEventListener {
  ...
  public void getUserSecurityLevel(SnmptrapmgrGetUserSecurityLevelEvent e) {}
  ...
}

public class SnmptrapmgrGetUserSecurityLevelEvent {
  public String user;
  public byte[] engineId;
  public int securityLevel;
}

Remarks

The GetUserSecurityLevel event is fired after the first inspection of each SNMPv3 request. The SecurityLevel parameter determines the level of security for the message.

On entry, the SecurityLevel parameter contains the default security level for User if the user is located in the internal cache, or if the User is not found in the cache, the SecurityLevel will be -1.

The value of SecurityLevel upon exiting the event, determines how the message will be processed:

-1The message will be ignored and a BadPacket event will be fired.
0No security. The message will be processed without any authentication and/or encryption.
1Authentication only. The message will be checked for a valid signature and the GetUserPassword event will be fired to verify the authentication password.
2Authentication and Privacy. The message will be checked for a valid signature and the GetUserPassword event will be fired twice: first to verify the authentication password, and then to verify the privacy password.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks SNMP 2020 Android Edition - Version 20.0 [Build 8202]