public enum SecurityLevel extends java.lang.Enum<SecurityLevel>
SecurityLevel
interface contains enumerated values
for the different security levels.Enum Constant and Description |
---|
authNoPriv |
authPriv |
noAuthNoPriv |
undefined |
Modifier and Type | Field and Description |
---|---|
static int |
AUTH_NOPRIV
Authentication and no encryption.
|
static int |
AUTH_PRIV
Authentication and encryption.
|
static int |
NOAUTH_NOPRIV
No authentication and no encryption.
|
private int |
snmpValue |
Modifier and Type | Method and Description |
---|---|
static SecurityLevel |
get(int snmpValue) |
int |
getSnmpValue()
Gets the SNMP value of this security level.
|
static SecurityLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SecurityLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SecurityLevel undefined
public static final SecurityLevel noAuthNoPriv
public static final SecurityLevel authNoPriv
public static final SecurityLevel authPriv
public static final int NOAUTH_NOPRIV
public static final int AUTH_NOPRIV
public static final int AUTH_PRIV
private int snmpValue
public static SecurityLevel[] values()
for (SecurityLevel c : SecurityLevel.values()) System.out.println(c);
public static SecurityLevel valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getSnmpValue()
public static SecurityLevel get(int snmpValue)