Package org.openmuc.jdlms
Enum SecuritySuite.SecurityPolicy
- java.lang.Object
-
- java.lang.Enum<SecuritySuite.SecurityPolicy>
-
- org.openmuc.jdlms.SecuritySuite.SecurityPolicy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SecuritySuite.SecurityPolicy>
- Enclosing class:
- SecuritySuite
public static enum SecuritySuite.SecurityPolicy extends java.lang.Enum<SecuritySuite.SecurityPolicy>
The security policy.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTHENTICATED
All messages to be authenticated.AUTHENTICATED_AND_ENCRYPTED
All messaged to be authenticated and encrypted.ENCRYPTED
All messages to be encrypted.NOTHING
No encryption and authentication.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getId()
boolean
isAuthenticated()
boolean
isEncrypted()
java.lang.String
keyName()
static SecuritySuite.SecurityPolicy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SecuritySuite.SecurityPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOTHING
public static final SecuritySuite.SecurityPolicy NOTHING
No encryption and authentication.
-
AUTHENTICATED
public static final SecuritySuite.SecurityPolicy AUTHENTICATED
All messages to be authenticated.
-
ENCRYPTED
public static final SecuritySuite.SecurityPolicy ENCRYPTED
All messages to be encrypted.
-
AUTHENTICATED_AND_ENCRYPTED
public static final SecuritySuite.SecurityPolicy AUTHENTICATED_AND_ENCRYPTED
All messaged to be authenticated and encrypted.
-
-
Method Detail
-
values
public static SecuritySuite.SecurityPolicy[] 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.SecurityPolicy c : SecuritySuite.SecurityPolicy.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.SecurityPolicy 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
-
keyName
public java.lang.String keyName()
-
isAuthenticated
public boolean isAuthenticated()
-
isEncrypted
public boolean isEncrypted()
-
getId
public int getId()
-
-