public enum AuthenticationMechanism extends java.lang.Enum<AuthenticationMechanism>
Enum Constant and Description |
---|
HLS5_GMAC
Authentication of both client and smart meter using GMAC and a pre shared secret password
|
LOW
Authentication of the client by sending a shared password as secret
|
NONE
No authentication used.
|
Modifier and Type | Method and Description |
---|---|
int |
getId()
Returns the ID of this AuthenticationMechanism.
|
static AuthenticationMechanism |
getInstance(int id)
Returns the AuthenticationMechanism that corresponds to the given ID.
|
boolean |
isHlsMechanism() |
static AuthenticationMechanism |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AuthenticationMechanism[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthenticationMechanism NONE
public static final AuthenticationMechanism LOW
public static final AuthenticationMechanism HLS5_GMAC
public static AuthenticationMechanism[] values()
for (AuthenticationMechanism c : AuthenticationMechanism.values()) System.out.println(c);
public static AuthenticationMechanism valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getId()
public static AuthenticationMechanism getInstance(int id)
id
- the IDpublic boolean isHlsMechanism()