- java.lang.Object
-
- java.lang.Enum<TargetBuilder.PrivProtocol>
-
- org.snmp4j.fluent.TargetBuilder.PrivProtocol
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TargetBuilder.PrivProtocol>
- Enclosing class:
- TargetBuilder<A extends Address>
public static enum TargetBuilder.PrivProtocol extends java.lang.Enum<TargetBuilder.PrivProtocol>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description _3des
aes128
aes192
aes192with3DESKeyExtension
aes256
aes256with3DESKeyExtension
des
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
name
private OID
protocolID
-
Constructor Summary
Constructors Modifier Constructor Description private
PrivProtocol(java.lang.String name, OID protocolID)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
OID
getProtocolID()
static TargetBuilder.PrivProtocol
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TargetBuilder.PrivProtocol[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
des
public static final TargetBuilder.PrivProtocol des
-
_3des
public static final TargetBuilder.PrivProtocol _3des
-
aes128
public static final TargetBuilder.PrivProtocol aes128
-
aes192
public static final TargetBuilder.PrivProtocol aes192
-
aes256
public static final TargetBuilder.PrivProtocol aes256
-
aes192with3DESKeyExtension
public static final TargetBuilder.PrivProtocol aes192with3DESKeyExtension
-
aes256with3DESKeyExtension
public static final TargetBuilder.PrivProtocol aes256with3DESKeyExtension
-
-
Field Detail
-
protocolID
private final OID protocolID
-
name
private final java.lang.String name
-
-
Constructor Detail
-
PrivProtocol
private PrivProtocol(java.lang.String name, OID protocolID)
-
-
Method Detail
-
values
public static TargetBuilder.PrivProtocol[] 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 (TargetBuilder.PrivProtocol c : TargetBuilder.PrivProtocol.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TargetBuilder.PrivProtocol 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
-
getProtocolID
public OID getProtocolID()
-
getName
public java.lang.String getName()
-
-