Package org.openmuc.jdlms
Enum SecuritySuite.EncryptionMechanism
- java.lang.Object
-
- java.lang.Enum<SecuritySuite.EncryptionMechanism>
-
- org.openmuc.jdlms.SecuritySuite.EncryptionMechanism
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SecuritySuite.EncryptionMechanism>
,DlmsEnumeration
- Enclosing class:
- SecuritySuite
public static enum SecuritySuite.EncryptionMechanism extends java.lang.Enum<SecuritySuite.EncryptionMechanism> implements DlmsEnumeration
Cryptographic algorithm identify the algorithm for which a derived secret symmetrical key will be used.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AES_GCM_128
Use AES-GCM-128.AES_GCM_256
Use AES-GCM-256.NONE
Do not encrypt transport.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCode()
static SecuritySuite.EncryptionMechanism
getInstance(long id)
Returns the EncryptionMechanism that corresponds to the given ID.static SecuritySuite.EncryptionMechanism
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SecuritySuite.EncryptionMechanism[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final SecuritySuite.EncryptionMechanism NONE
Do not encrypt transport.
-
AES_GCM_128
public static final SecuritySuite.EncryptionMechanism AES_GCM_128
Use AES-GCM-128.
-
AES_GCM_256
public static final SecuritySuite.EncryptionMechanism AES_GCM_256
Use AES-GCM-256.
-
-
Method Detail
-
values
public static SecuritySuite.EncryptionMechanism[] 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 (SecuritySuite.EncryptionMechanism c : SecuritySuite.EncryptionMechanism.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SecuritySuite.EncryptionMechanism 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
-
getCode
public long getCode()
- Specified by:
getCode
in interfaceDlmsEnumeration
-
getInstance
public static SecuritySuite.EncryptionMechanism getInstance(long id)
Returns the EncryptionMechanism that corresponds to the given ID. Throws an IllegalArgumentException if no EncryptionMechanism with the given ID exists.- Parameters:
id
- the ID- Returns:
- the EncryptionMechanism that corresponds to the given ID
-
-