logger.log(BasicLevel.ERROR, "EXCEPTION:: validate", e);
throw new Exception("Error while getting the algorithm 'SHA1withDSA' :" + e.getMessage());
}
try {
signature.initVerify(publickey);
} catch (InvalidKeyException e) {
if (logger.isLoggable(BasicLevel.ERROR))
logger.log(BasicLevel.ERROR, "EXCEPTION:: validate", e);
throw new Exception("Cannot initialize the signature with the given public key:" + e.getMessage());
}