IPersistentEnumpublic enum SymmetricCipher extends java.lang.Enum<SymmetricCipher> implements IPersistentEnum
| Enum Constant | Description |
|---|---|
AES128_CBC |
|
AES192_CBC |
|
AES256_CBC |
|
AES256_GCM |
| Modifier and Type | Method | Description |
|---|---|---|
static SymmetricCipher |
newInstance(int id) |
Return the enum instance represented by the given integer value.
|
int |
toInt() |
|
static SymmetricCipher |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static SymmetricCipher[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SymmetricCipher AES256_GCM
public static final SymmetricCipher AES128_CBC
public static final SymmetricCipher AES192_CBC
public static final SymmetricCipher AES256_CBC
public static SymmetricCipher[] values()
for (SymmetricCipher c : SymmetricCipher.values()) System.out.println(c);
public static SymmetricCipher 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 toInt()
toInt in interface IPersistentEnum@Nonnull public static SymmetricCipher newInstance(int id) throws InvalidPersistentEnumException
id - An integer value which could have been returned from toInt();InvalidPersistentEnumException - If the given value is invalid.Copyright © 2018 Symphony Software Foundation. All rights reserved.