throw new DecryptionException("Error when loading library native encrypted key representation", e);
}
Key key = null;
try {
key = xmlCipher.decryptKey(encKey, algorithm);
} catch (XMLEncryptionException e) {
log.error("Error decrypting encrypted key", e);
throw new DecryptionException("Error decrypting encrypted key", e);
} catch (Exception e) {
// Catch anything else, esp. unchecked RuntimeException, and convert to our checked type.