Package com.avsystem.anjay
Enum AnjaySecurityObject.SecurityMode
- java.lang.Object
-
- java.lang.Enum<AnjaySecurityObject.SecurityMode>
-
- com.avsystem.anjay.AnjaySecurityObject.SecurityMode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AnjaySecurityObject.SecurityMode>
- Enclosing class:
- AnjaySecurityObject
public static enum AnjaySecurityObject.SecurityMode extends java.lang.Enum<AnjaySecurityObject.SecurityMode>
Possible values of the Security Mode Resource, as described in the Security Object definition.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CERTIFICATECertificate modeESTCertificate mode with ESTNOSECNoSec modePSKPre-Shared Key modeRPKRaw Public Key mode
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()static AnjaySecurityObject.SecurityModevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AnjaySecurityObject.SecurityMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PSK
public static final AnjaySecurityObject.SecurityMode PSK
Pre-Shared Key mode
-
RPK
public static final AnjaySecurityObject.SecurityMode RPK
Raw Public Key mode
-
CERTIFICATE
public static final AnjaySecurityObject.SecurityMode CERTIFICATE
Certificate mode
-
NOSEC
public static final AnjaySecurityObject.SecurityMode NOSEC
NoSec mode
-
EST
public static final AnjaySecurityObject.SecurityMode EST
Certificate mode with EST
-
-
Method Detail
-
values
public static AnjaySecurityObject.SecurityMode[] 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 (AnjaySecurityObject.SecurityMode c : AnjaySecurityObject.SecurityMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AnjaySecurityObject.SecurityMode 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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<AnjaySecurityObject.SecurityMode>
-
-