public enum LispAuthenticationKeyEnum extends Enum<LispAuthenticationKeyEnum>
| Enum Constant and Description |
|---|
NONE
No authentication.
|
SHA1
HMAC SHA1 encryption.
|
SHA256
HMAC SHA256 encryption.
|
UNKNOWN
Unsupported authentication type.
|
| Modifier and Type | Method and Description |
|---|---|
short |
getHashLength()
Obtains hash length.
|
short |
getKeyId()
Obtains authentication key identifier.
|
String |
getName()
Obtains authentication name.
|
static LispAuthenticationKeyEnum |
valueOf(short keyId)
Obtains LISP authentication key enum by providing key identifier.
|
static LispAuthenticationKeyEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LispAuthenticationKeyEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LispAuthenticationKeyEnum NONE
public static final LispAuthenticationKeyEnum SHA1
public static final LispAuthenticationKeyEnum SHA256
public static final LispAuthenticationKeyEnum UNKNOWN
public static LispAuthenticationKeyEnum[] values()
for (LispAuthenticationKeyEnum c : LispAuthenticationKeyEnum.values()) System.out.println(c);
public static LispAuthenticationKeyEnum valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic short getKeyId()
public String getName()
public short getHashLength()
public static LispAuthenticationKeyEnum valueOf(short keyId)
keyId - LISP authentication key identifier