public final class EncryptionAlgorithm
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AES_128_GCM |
static java.lang.String |
AES_256_GCM |
| Modifier and Type | Method and Description |
|---|---|
static int |
getKeyLength(java.lang.String algorithmName)
Returns the required key length in bytes for the given algorithm.
|
static boolean |
isSupported(java.lang.String algorithmName)
Checks if an algorithm name is supported.
|
public static final java.lang.String AES_256_GCM
public static final java.lang.String AES_128_GCM
public static int getKeyLength(java.lang.String algorithmName)
algorithmName - the algorithm namejava.lang.IllegalArgumentException - if the algorithm is not supportedpublic static boolean isSupported(java.lang.String algorithmName)
algorithmName - the algorithm name to check