public class KeyValidationSupport extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MIN_RSA_KEY_LENGTH |
| Constructor and Description |
|---|
KeyValidationSupport() |
| Modifier and Type | Method and Description |
|---|---|
static <K extends Key> |
castKey(Key key,
Class<K> type) |
static void |
cekNotAllowed(byte[] cekOverride,
String alg) |
static void |
checkRsaKeySize(Key key) |
static void |
notNull(Key key) |
static void |
validateAesWrappingKey(Key managementKey,
String joseAlg,
int expectedKeyByteLength) |
public static final int MIN_RSA_KEY_LENGTH
public static void checkRsaKeySize(Key key) throws InvalidKeyException
InvalidKeyExceptionpublic static <K extends Key> K castKey(Key key, Class<K> type) throws InvalidKeyException
InvalidKeyExceptionpublic static void notNull(Key key) throws InvalidKeyException
InvalidKeyExceptionpublic static void cekNotAllowed(byte[] cekOverride,
String alg)
throws InvalidKeyException
InvalidKeyExceptionpublic static void validateAesWrappingKey(Key managementKey, String joseAlg, int expectedKeyByteLength) throws InvalidKeyException
InvalidKeyExceptionCopyright © 2019. All rights reserved.