public enum Encryption extends Enum<Encryption>
| Enum Constant and Description |
|---|
AES |
| Modifier and Type | Method and Description |
|---|---|
abstract byte[] |
decrypt(Key key,
byte[] encrypted) |
abstract byte[] |
encrypt(Key key,
byte[] toBeEncrypted) |
static Encryption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Encryption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Encryption AES
public static Encryption[] values()
for (Encryption c : Encryption.values()) System.out.println(c);
public static Encryption 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 abstract byte[] encrypt(Key key, byte[] toBeEncrypted) throws Exception
ExceptionCopyright © 2020. All rights reserved.