- java.lang.Object
-
- java.lang.Enum<SNMP4JSettings.ReportSecurityLevelStrategy>
-
- org.snmp4j.SNMP4JSettings.ReportSecurityLevelStrategy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SNMP4JSettings.ReportSecurityLevelStrategy>
- Enclosing class:
- SNMP4JSettings
public static enum SNMP4JSettings.ReportSecurityLevelStrategy extends java.lang.Enum<SNMP4JSettings.ReportSecurityLevelStrategy>
Specifies the how the security level of retry requests after a REPORT PDU is set.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description neverNoAuthNoPriv
Never use noAuthNoPriv security level for reports.noAuthNoPrivIfNeeded
This is the SNMP4J < 2.2.0 default strategy.standard
The standard report strategy is conforming to RFC 3412 and 3414.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SNMP4JSettings.ReportSecurityLevelStrategy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SNMP4JSettings.ReportSecurityLevelStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
noAuthNoPrivIfNeeded
public static final SNMP4JSettings.ReportSecurityLevelStrategy noAuthNoPrivIfNeeded
This is the SNMP4J < 2.2.0 default strategy. If the report receiver would not be able to process the REPORT, a lesser security level is used.
-
standard
public static final SNMP4JSettings.ReportSecurityLevelStrategy standard
The standard report strategy is conforming to RFC 3412 and 3414. Security level noAuthNoPriv is allowed for engine ID discovery and wrong username reports.
-
neverNoAuthNoPriv
public static final SNMP4JSettings.ReportSecurityLevelStrategy neverNoAuthNoPriv
Never use noAuthNoPriv security level for reports.
-
-
Method Detail
-
values
public static SNMP4JSettings.ReportSecurityLevelStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SNMP4JSettings.ReportSecurityLevelStrategy c : SNMP4JSettings.ReportSecurityLevelStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SNMP4JSettings.ReportSecurityLevelStrategy valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-