Package org.onosproject.net.key
Enum DeviceKey.Type
- java.lang.Object
-
- java.lang.Enum<DeviceKey.Type>
-
- org.onosproject.net.key.DeviceKey.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DeviceKey.Type>
- Enclosing class:
- DeviceKey
public static enum DeviceKey.Type extends java.lang.Enum<DeviceKey.Type>
type of the device key.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMMUNITY_NAME
SSL_KEY
USERNAME_PASSWORD
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DeviceKey.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DeviceKey.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMMUNITY_NAME
public static final DeviceKey.Type COMMUNITY_NAME
-
USERNAME_PASSWORD
public static final DeviceKey.Type USERNAME_PASSWORD
-
SSL_KEY
public static final DeviceKey.Type SSL_KEY
-
-
Method Detail
-
values
public static DeviceKey.Type[] 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 (DeviceKey.Type c : DeviceKey.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DeviceKey.Type 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
-
-