View Javadoc
1   // NAME
2   //      $RCSfile: usmStatsConstants.java,v $
3   // DESCRIPTION
4   //      [given below in javadoc format]
5   // DELTA
6   //      $Revision: 3.7 $
7   // CREATED
8   //      $Date: 2006/03/23 14:54:10 $
9   // COPYRIGHT
10  //      Westhawk Ltd
11  // TO DO
12  //
13  
14  /*
15   * Copyright (C) 2001 - 2006 by Westhawk Ltd
16   * <a href="www.westhawk.co.uk">www.westhawk.co.uk</a>
17   *
18   * Permission to use, copy, modify, and distribute this software
19   * for any purpose and without fee is hereby granted, provided
20   * that the above copyright notices appear in all copies and that
21   * both the copyright notice and this permission notice appear in
22   * supporting documentation.
23   * This software is provided "as is" without express or implied
24   * warranty.
25   * author <a href="mailto:snmp@westhawk.co.uk">Tim Panton</a>
26   */
27  
28  package uk.co.westhawk.snmp.stack;
29  
30  /*-
31   * ╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲
32   * SNMP Java Client
33   * ჻჻჻჻჻჻
34   * Copyright 2023 MetricsHub, Westhawk
35   * ჻჻჻჻჻჻
36   * This program is free software: you can redistribute it and/or modify
37   * it under the terms of the GNU Lesser General Public License as
38   * published by the Free Software Foundation, either version 3 of the
39   * License, or (at your option) any later version.
40   *
41   * This program is distributed in the hope that it will be useful,
42   * but WITHOUT ANY WARRANTY; without even the implied warranty of
43   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
44   * GNU General Lesser Public License for more details.
45   *
46   * You should have received a copy of the GNU General Lesser Public
47   * License along with this program.  If not, see
48   * <http://www.gnu.org/licenses/lgpl-3.0.html>.
49   * ╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱
50   */
51  
52  /**
53   * This interface contains the OIDs for the usmStats variables.
54   * These variables are returned with the SNMPv3 usm security model when
55   * an error occurs.
56   *
57   * They are part of the 
58   * <a href="http://www.ietf.org/rfc/rfc3414.txt">SNMP-USER-BASED-SM-MIB</a> mib.
59   *
60   * @see SnmpContextv3
61   *
62   * @author <a href="mailto:snmp@westhawk.co.uk">Birgit Arkesteijn</a>
63   * @version $Revision: 3.7 $ $Date: 2006/03/23 14:54:10 $
64   */
65  public interface usmStatsConstants {
66      static final String version_id = "@(#)$Id: usmStatsConstants.java,v 3.7 2006/03/23 14:54:10 birgit Exp $ Copyright Westhawk Ltd";
67  
68      /**
69       * The total number of packets received by the SNMP engine which
70       * were dropped because they requested a securityLevel that was
71       * unknown to the SNMP engine or otherwise unavailable.
72       */
73      public final static String usmStatsUnsupportedSecLevels = "1.3.6.1.6.3.15.1.1.1";
74  
75      /**
76       * The total number of packets received by the SNMP engine which were
77       * dropped because they appeared outside of the authoritative SNMP
78       * engine's window.
79       */
80      public final static String usmStatsNotInTimeWindows = "1.3.6.1.6.3.15.1.1.2";
81  
82      /**
83       * The total number of packets received by the SNMP engine which
84       * were dropped because they referenced a user that was not known to
85       * the SNMP engine.
86       */
87      public final static String usmStatsUnknownUserNames = "1.3.6.1.6.3.15.1.1.3";
88  
89      /**
90       * The total number of packets received by the SNMP engine which
91       * were dropped because they referenced an snmpEngineID that was not
92       * known to the SNMP engine.
93       */
94      public final static String usmStatsUnknownEngineIDs = "1.3.6.1.6.3.15.1.1.4";
95  
96      /**
97       * The total number of packets received by the SNMP engine which
98       * were dropped because they didn't contain the expected digest
99       * value.
100      */
101     public final static String usmStatsWrongDigests = "1.3.6.1.6.3.15.1.1.5";
102 
103     /**
104      * The total number of packets received by the SNMP engine which
105      * were dropped because they could not be decrypted.
106      */
107     public final static String usmStatsDecryptionErrors = "1.3.6.1.6.3.15.1.1.6";
108 
109     /**
110      * The array with all the usmStats dotted OIDs in it.
111      */
112     public final static String[] usmStatsOids = {
113             usmStatsUnsupportedSecLevels,
114             usmStatsNotInTimeWindows,
115             usmStatsUnknownUserNames,
116             usmStatsUnknownEngineIDs,
117             usmStatsWrongDigests,
118             usmStatsDecryptionErrors
119     };
120 
121     /**
122      * The array with all the usmStats verbal OIDs in it.
123      */
124     public final static String[] usmStatsStrings = {
125             "usmStatsUnsupportedSecLevels",
126             "usmStatsNotInTimeWindows",
127             "usmStatsUnknownUserNames",
128             "usmStatsUnknownEngineIDs",
129             "usmStatsWrongDigests",
130             "usmStatsDecryptionErrors"
131     };
132 
133 }
134