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(RSAKey rsaKey) |
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(RSAKey rsaKey) throws InvalidKeyException
InvalidKeyException
public static <K extends Key> K castKey(Key key, Class<K> type) throws InvalidKeyException
InvalidKeyException
public static void notNull(Key key) throws InvalidKeyException
InvalidKeyException
public static void cekNotAllowed(byte[] cekOverride, String alg) throws InvalidKeyException
InvalidKeyException
public static void validateAesWrappingKey(Key managementKey, String joseAlg, int expectedKeyByteLength) throws InvalidKeyException
InvalidKeyException
Copyright © 2015. All rights reserved.