Module org.snmp4j
Package org.snmp4j
Enum Class SNMP4JSettings.Snmp4jConfirmedRequestEmptyContextEngineIdStrategy
java.lang.Object
java.lang.Enum<SNMP4JSettings.Snmp4jConfirmedRequestEmptyContextEngineIdStrategy>
org.snmp4j.SNMP4JSettings.Snmp4jConfirmedRequestEmptyContextEngineIdStrategy
- All Implemented Interfaces:
Serializable,Comparable<SNMP4JSettings.Snmp4jConfirmedRequestEmptyContextEngineIdStrategy>,java.lang.constant.Constable
- Enclosing class:
SNMP4JSettings
public static enum SNMP4JSettings.Snmp4jConfirmedRequestEmptyContextEngineIdStrategy
extends Enum<SNMP4JSettings.Snmp4jConfirmedRequestEmptyContextEngineIdStrategy>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies that the authoritativeEngineId should always replace an empty contextEngineID, regardless of whether the confirmed class ScopedPDU is incoming or outgoing.Specifies that the authoritativeEngineId should replace an empty contextEngineID for incoming confirmed class ScopedPDUs.Indicates that the `authoritativeEngineId` should be replaced by an empty contextEngineID for outgoing confirmed class ScopedPDUs.Do not modify the provided ScopedPDU. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
strictlyAsProvided
public static final SNMP4JSettings.Snmp4jConfirmedRequestEmptyContextEngineIdStrategy strictlyAsProvidedDo not modify the provided ScopedPDU. This will cause an error because the contextEngineID must be set. -
outgoingUseAuthoritativeEngineId
public static final SNMP4JSettings.Snmp4jConfirmedRequestEmptyContextEngineIdStrategy outgoingUseAuthoritativeEngineIdIndicates that the `authoritativeEngineId` should be replaced by an empty contextEngineID for outgoing confirmed class ScopedPDUs. This is the default strategy of SNMP4J which is compliant with the SNMPv3 RFCs. -
incomingUseAuthoritativeEngineId
public static final SNMP4JSettings.Snmp4jConfirmedRequestEmptyContextEngineIdStrategy incomingUseAuthoritativeEngineIdSpecifies that the authoritativeEngineId should replace an empty contextEngineID for incoming confirmed class ScopedPDUs. -
alwaysUseAuthoritativeEngineId
public static final SNMP4JSettings.Snmp4jConfirmedRequestEmptyContextEngineIdStrategy alwaysUseAuthoritativeEngineIdSpecifies that the authoritativeEngineId should always replace an empty contextEngineID, regardless of whether the confirmed class ScopedPDU is incoming or outgoing.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
public static SNMP4JSettings.Snmp4jConfirmedRequestEmptyContextEngineIdStrategy valueOf(String name) Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-