public enum SecurityLevel extends 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.
|
Modifier and Type | Method and Description |
---|---|
static SecurityLevel |
get(int snmpValue) |
int |
getSnmpValue()
Gets the SNMP value of this security level.
|
static SecurityLevel |
valueOf(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
public static SecurityLevel[] values()
for (SecurityLevel c : SecurityLevel.values()) System.out.println(c);
public static SecurityLevel valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getSnmpValue()
public static SecurityLevel get(int snmpValue)
Copyright © 2022 SNMP4J.org. All rights reserved.