Package org.openmuc.jdlms
Enum SecurityUtils.KeyId
- java.lang.Object
-
- java.lang.Enum<SecurityUtils.KeyId>
-
- org.openmuc.jdlms.SecurityUtils.KeyId
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SecurityUtils.KeyId>
,DlmsEnumeration
- Enclosing class:
- SecurityUtils
public static enum SecurityUtils.KeyId extends java.lang.Enum<SecurityUtils.KeyId> implements DlmsEnumeration
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTHENTICATION_KEY
GLOBAL_BROADCAST_ENCRYPTION_KEY
GLOBAL_UNICAST_ENCRYPTION_KEY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCode()
int
keyId()
static SecurityUtils.KeyId
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SecurityUtils.KeyId[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GLOBAL_UNICAST_ENCRYPTION_KEY
public static final SecurityUtils.KeyId GLOBAL_UNICAST_ENCRYPTION_KEY
-
GLOBAL_BROADCAST_ENCRYPTION_KEY
public static final SecurityUtils.KeyId GLOBAL_BROADCAST_ENCRYPTION_KEY
-
AUTHENTICATION_KEY
public static final SecurityUtils.KeyId AUTHENTICATION_KEY
-
-
Method Detail
-
values
public static SecurityUtils.KeyId[] 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 (SecurityUtils.KeyId c : SecurityUtils.KeyId.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SecurityUtils.KeyId 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
-
keyId
public int keyId()
-
getCode
public long getCode()
- Specified by:
getCode
in interfaceDlmsEnumeration
-
-