if ((getStatus() != SecConst.CA_ACTIVE) && ((getStatus() != SecConst.CA_EXPIRED))) {
String msg = intres.getLocalizedMessage("error.caoffline", getName(), getStatus());
if (log.isDebugEnabled()) {
log.debug(msg); // This is something we handle so no need to log with higher priority
}
throw new CAOfflineException(msg);
}
final String sigAlg;
if(certProfile.getSignatureAlgorithm() == null) {
sigAlg = getCAInfo().getCATokenInfo().getSignatureAlgorithm();