- java.lang.Object
-
- java.lang.Enum<TargetBuilder.AuthProtocol>
-
- org.snmp4j.fluent.TargetBuilder.AuthProtocol
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TargetBuilder.AuthProtocol>
- Enclosing class:
- TargetBuilder<A extends Address>
public static enum TargetBuilder.AuthProtocol extends java.lang.Enum<TargetBuilder.AuthProtocol>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description hmac128sha224
hmac192sha256
hmac256sha384
hmac384sha512
md5
sha1
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
name
private OID
protocolID
-
Constructor Summary
Constructors Modifier Constructor Description private
AuthProtocol(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.AuthProtocol
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TargetBuilder.AuthProtocol[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
md5
public static final TargetBuilder.AuthProtocol md5
-
sha1
public static final TargetBuilder.AuthProtocol sha1
-
hmac128sha224
public static final TargetBuilder.AuthProtocol hmac128sha224
-
hmac192sha256
public static final TargetBuilder.AuthProtocol hmac192sha256
-
hmac256sha384
public static final TargetBuilder.AuthProtocol hmac256sha384
-
hmac384sha512
public static final TargetBuilder.AuthProtocol hmac384sha512
-
-
Field Detail
-
protocolID
private final OID protocolID
-
name
private final java.lang.String name
-
-
Constructor Detail
-
AuthProtocol
private AuthProtocol(java.lang.String name, OID protocolID)
-
-
Method Detail
-
values
public static TargetBuilder.AuthProtocol[] 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.AuthProtocol c : TargetBuilder.AuthProtocol.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.AuthProtocol 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()
-
-