getLogSession().log(admin, signcadata.getCAId().intValue(), LogEntry.MODULE_CA,  new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CAEDITED,"Signing CA " + signcadata.getSubjectDN() + " has expired",ce);
getLogSession().log(admin, signcadata.getCaId().intValue(), LogEntry.MODULE_CA,  new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CAEDITED,"Signing CA " + signcadata.getSubjectDN() + " has expired",ce);
    private void checkSignerValidity(Admin admin, CADataLocal signcadata) throws UnsupportedEncodingException {    	// Check validity of signers certificate    	X509Certificate signcert = (X509Certificate) signcadata.getCA().getCACertificate();    	try{    		signcert.checkValidity();    	}catch(CertificateExpiredException ce){    		// Signers Certificate has expired.    		signcadata.setStatus(SecConst.CA_EXPIRED);    		getLogSession().log(admin, signcadata.getCAId().intValue(), LogEntry.MODULE_CA,  new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CAEDITED,"Signing CA " + signcadata.getSubjectDN() + " has expired",ce);    		throw new EJBException(ce);    	}catch(CertificateNotYetValidException cve){    		getLogSession().log(admin, signcadata.getCAId().intValue(), LogEntry.MODULE_CA,  new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CAEDITED,"Signing CA " + signcadata.getSubjectDN() + " is not yet valid",cve);    		throw new EJBException(cve);    	}    }